<commit_before># encoding: UTF-8
require_relative "../../test_helper"
require_relative "flow_test_helper"

class DocumentLegalisationCheckerTest < ActiveSupport::TestCase
  include FlowTestHelper

  setup do
    setup_for_testing_flow "legalisation-document-checker"
  end

  should "ask what documents you would like legalised" do
    assert_current_node :what_documents_do_you_want_legalised?
  end

  should "error if nothing selected" do
    add_response 'none'
    assert_current_node :what_documents_do_you_want_legalised?
    assert_current_node_is_error
  end

  context "doesnt include birth_data, certificate_impediment or medical_reports" do<commit_msg>Update error assertions in Legalisation Document Checker<commit_after># encoding: UTF-8
require_relative "../../test_helper"
require_relative "flow_test_helper"

class DocumentLegalisationCheckerTest < ActiveSupport::TestCase
  include FlowTestHelper

  setup do
    setup_for_testing_flow "legalisation-document-checker"
  end

  should "ask what documents you would like legalised" do
    assert_current_node :what_documents_do_you_want_legalised?
  end

  should "error if nothing selected" do
    add_response 'none'
    assert_current_node :what_documents_do_you_want_legalised?, :error => true
  end

  context "doesnt include birth_data, certificate_impediment or medical_reports" do
{'fraction_non_alphanumeric': 0.056129985228951254, 'fraction_numerical': 0.0014771048744460858, 'mean_word_length': 5.674876847290641, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4891165', 'n_tokens_mistral': 403, 'n_tokens_neox': 387, 'n_words': 104}