Skip to content

Commit

Permalink
Revise qaqc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sf-dcp committed Nov 7, 2024
1 parent d8d7248 commit 824661e
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions apps/qa/tests/test_pluto.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,16 @@ def test_values_by_fields(
fields = ["overlay1", "overlay2"]
expected_values = [
None,
"C1-2",
"C2-3",
"C2-1",
"C2-2",
"C1-1",
"C1-5",
"C2-4",
"C1-4",
"C2-5",
"C1-2",
"C1-3",
None,
"C1-4",
"C1-5",
"C2-1",
"C2-2",
"C2-3",
"C2-4",
"C1-4",
"C1-3",
"C2-5",
"C1-2",
"C2-3",
"C2-1",
"C1-5",
"C1-1",
]
expected_records = example_ExpectedValueDifferencesReport.v_expected_records
actual_values = example_ExpectedValueDifferencesReport.values_by_fields(
Expand All @@ -92,13 +81,13 @@ def test_value_differences_across_versions(
example_ExpectedValueDifferencesReport: ExpectedValueDifferencesReport,
):
comparison_name = "zoning"
expeted_in1not2 = ["M1-4/R9", "M1-4/R7-3", "M1-4/R9", "M1-4/R7-3"]
expeted_in2not1: list[str] = []
expected_in1not2 = ["M1-4/R7-3", "M1-4/R9"]
expected_in2not1: list[str] = []
(
in1not2,
in2not1,
) = example_ExpectedValueDifferencesReport.value_differences_across_versions(
comparison_name
)
assert in1not2 == expeted_in1not2
assert in2not1 == expeted_in2not1
assert in1not2 == expected_in1not2
assert in2not1 == expected_in2not1

0 comments on commit 824661e

Please sign in to comment.