From 2fe5a1d87e7dbb6a1b28ed0f0a0dca8d977945b3 Mon Sep 17 00:00:00 2001 From: klingbolt Date: Tue, 14 Nov 2023 19:25:16 -0500 Subject: [PATCH] Added tests for species filter --- .../proto_species_filter/markers.bin | 5 +++++ .../xml_species_filter/xml_file.xml | 17 +++++++++++++++++ .../inputs/xml_species_filter/xml_file.xml | 17 +++++++++++++++++ xml_converter/intigration_tests/testcases.py | 6 ++++++ 4 files changed, 45 insertions(+) create mode 100644 xml_converter/intigration_tests/expected_outputs/proto_species_filter/markers.bin create mode 100644 xml_converter/intigration_tests/expected_outputs/xml_species_filter/xml_file.xml create mode 100644 xml_converter/intigration_tests/inputs/xml_species_filter/xml_file.xml diff --git a/xml_converter/intigration_tests/expected_outputs/proto_species_filter/markers.bin b/xml_converter/intigration_tests/expected_outputs/proto_species_filter/markers.bin new file mode 100644 index 00000000..15f18c1b --- /dev/null +++ b/xml_converter/intigration_tests/expected_outputs/proto_species_filter/markers.bin @@ -0,0 +1,5 @@ + +­ + My Category 2B \Ï)Cf¦RC{ÔWC‚ 2B \Ï)Cf¦RC{ÔWC‚ 2B \Ï)Cf¦RC{ÔWC‚ 2B \Ï)Cf¦RC{ÔWC‚  2B \Ï)Cf¦RC{ÔWC‚ + ( 2B \Ï)Cf¦RC{ÔWC‚ 2B \Ï)Cf¦RC{ÔWC‚ 2B \Ï)Cf¦RC{ÔWC‚ 2B \Ï)Cf¦RC{ÔWC‚  2B \Ï)Cf¦RC{ÔWC‚ + ( \ No newline at end of file diff --git a/xml_converter/intigration_tests/expected_outputs/xml_species_filter/xml_file.xml b/xml_converter/intigration_tests/expected_outputs/xml_species_filter/xml_file.xml new file mode 100644 index 00000000..b2719c10 --- /dev/null +++ b/xml_converter/intigration_tests/expected_outputs/xml_species_filter/xml_file.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/xml_converter/intigration_tests/inputs/xml_species_filter/xml_file.xml b/xml_converter/intigration_tests/inputs/xml_species_filter/xml_file.xml new file mode 100644 index 00000000..39309422 --- /dev/null +++ b/xml_converter/intigration_tests/inputs/xml_species_filter/xml_file.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/xml_converter/intigration_tests/testcases.py b/xml_converter/intigration_tests/testcases.py index fc9d3a2b..fdcae723 100644 --- a/xml_converter/intigration_tests/testcases.py +++ b/xml_converter/intigration_tests/testcases.py @@ -120,4 +120,10 @@ class Testcase: expected_output_xml_path="./expected_outputs/xml_specialization_filter", expected_output_proto_path="./expected_outputs/proto_specialization_filter", ), + Testcase( + name="species_filter", + xml_input_paths=["./inputs/xml_species_filter"], + expected_output_xml_path="./expected_outputs/xml_species_filter", + expected_output_proto_path="./expected_outputs/proto_species_filter", + ), ]