From d554ce6562e8fc829ab2f4c72597d14449388b76 Mon Sep 17 00:00:00 2001 From: Bjarke Madsen <bjarke@nordu.net> Date: Mon, 7 Apr 2025 11:18:16 +0200 Subject: [PATCH] remove unnecessary calls to global --- test/test_legacy_survey_generation.py | 7 +------ test/test_survey_publisher_old_db_2022.py | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/test/test_legacy_survey_generation.py b/test/test_legacy_survey_generation.py index 71781d21..5504deab 100644 --- a/test/test_legacy_survey_generation.py +++ b/test/test_legacy_survey_generation.py @@ -29,11 +29,7 @@ def org_data(question): nren3,KU,Technical centre nren3,VDU,Technical centre nren3,VU,Technical centre - nren3,org_data -org_data -org_data -org_data -org_dataKTU,"NOC, administrative authority" + nren3,KTU,"NOC, administrative authority" """ if question == OrgQuestion.PARENT_ORG_NAME: @@ -122,7 +118,6 @@ org_dataKTU,"NOC, administrative authority" def setup_survey_db(app_with_survey_db, mocker): - global org_data def get_rows_as_tuples(*args, **kwargs): return [ diff --git a/test/test_survey_publisher_old_db_2022.py b/test/test_survey_publisher_old_db_2022.py index ed5e2e5f..8aabd773 100644 --- a/test/test_survey_publisher_old_db_2022.py +++ b/test/test_survey_publisher_old_db_2022.py @@ -18,11 +18,7 @@ def org_data(question): nren3,KU,Technical centre nren3,VDU,Technical centre nren3,VU,Technical centre - nren3,org_data -org_data -org_data -org_data -org_dataKTU,"NOC, administrative authority" + nren3,KTU,"NOC, administrative authority" """ if question == OrgQuestion.PARENT_ORG_NAME: @@ -111,7 +107,6 @@ org_dataKTU,"NOC, administrative authority" def test_publisher(app_with_survey_db, mocker): - global org_data def get_rows_as_tuples(*args, **kwargs): return [ -- GitLab