From 68063642a3620a6cc9f1a31aa79026381cba50d3 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Thu, 28 Sep 2023 23:36:40 -0400 Subject: [PATCH] correct fixture names in test --- .../test_store_test_failures_as_view.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/functional/adapter/store_test_failures_tests/test_store_test_failures_as_view.py b/tests/functional/adapter/store_test_failures_tests/test_store_test_failures_as_view.py index d092c612e..25e25bcba 100644 --- a/tests/functional/adapter/store_test_failures_tests/test_store_test_failures_as_view.py +++ b/tests/functional/adapter/store_test_failures_tests/test_store_test_failures_as_view.py @@ -50,10 +50,10 @@ def test_tests_run_successfully_and_are_persisted_correctly(self, project): # set up the expected results TestResult = namedtuple("TestResult", ["name", "status", "type", "row_count"]) expected_results = { - TestResult("pass_with_view_strategy", TestStatus.Pass, "view", 0), - TestResult("fail_with_view_strategy", TestStatus.Fail, "view", 1), - TestResult("pass_with_table_strategy", TestStatus.Pass, "table", 0), - TestResult("fail_with_table_strategy", TestStatus.Fail, "table", 1), + TestResult("pass_as_view", TestStatus.Pass, "view", 0), + TestResult("fail_as_view", TestStatus.Fail, "view", 1), + TestResult("pass_as_table", TestStatus.Pass, "table", 0), + TestResult("fail_as_table", TestStatus.Fail, "table", 1), } # run the tests once @@ -79,8 +79,8 @@ def test_tests_run_successfully_and_are_persisted_correctly(self, project): # insert a new record in the model that fails the "pass" tests # show that the view updates, but not the table self.insert_record(project, {"name": "dave", "shirt": "grape"}) - expected_results.remove(TestResult("pass_with_view_strategy", TestStatus.Pass, "view", 0)) - expected_results.add(TestResult("pass_with_view_strategy", TestStatus.Pass, "view", 1)) + expected_results.remove(TestResult("pass_as_view", TestStatus.Pass, "view", 0)) + expected_results.add(TestResult("pass_as_view", TestStatus.Pass, "view", 1)) # delete the original record from the model that failed the "fail" tests # show that the view updates, but not the table