From 02c5362ee6abe0662beb8abb67f3c0c9ba601cec Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Mon, 24 Jun 2024 11:31:43 -0700 Subject: [PATCH] fix(tests): Ensure fixture is invoked --- tests/integration_tests/sqllab_tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration_tests/sqllab_tests.py b/tests/integration_tests/sqllab_tests.py index 3f5a211db3311..a36cb8a8ec35a 100644 --- a/tests/integration_tests/sqllab_tests.py +++ b/tests/integration_tests/sqllab_tests.py @@ -71,7 +71,6 @@ class TestSqlLab(SupersetTestCase): """Testings for Sql Lab""" - @pytest.mark.usefixtures("load_birth_names_data") def run_some_queries(self): db.session.query(Query).delete() db.session.commit() @@ -419,6 +418,7 @@ def test_sql_limit(self): self.assertEqual(len(data["data"]), 1200) self.assertEqual(data["query"]["limitingFactor"], LimitingFactor.NOT_LIMITED) + @pytest.mark.usefixtures("load_birth_names_data") def test_query_api_filter(self) -> None: """ Test query api without can_only_access_owned_queries perm added to @@ -438,6 +438,7 @@ def test_query_api_filter(self) -> None: assert admin.first_name in user_queries assert gamma_sqllab.first_name in user_queries + @pytest.mark.usefixtures("load_birth_names_data") def test_query_api_can_access_all_queries(self) -> None: """ Test query api with can_access_all_queries perm added to @@ -522,6 +523,7 @@ def test_query_api_can_access_sql_editor_id_associated_queries(self) -> None: {r.get("sql") for r in self.get_json_resp(url)["result"]}, ) + @pytest.mark.usefixtures("load_birth_names_data") def test_query_admin_can_access_all_queries(self) -> None: """ Test query api with all_query_access perm added to