From 85072a0f3f9ad76acaa7918f10ef74a94c364fd0 Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Fri, 20 Oct 2023 11:57:40 +0200 Subject: [PATCH] Fix autogenerated elements for UI tests --- .gitignore | 2 +- tests/ui/_autogenerated_ui_elements.py | 21 --------------------- tests/ui/generate_ui_test_elements.py | 2 +- 3 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 tests/ui/_autogenerated_ui_elements.py diff --git a/.gitignore b/.gitignore index f71727d9..6e091a69 100644 --- a/.gitignore +++ b/.gitignore @@ -44,7 +44,7 @@ __pycache__/ # testing /coverage geckodriver.log -/ui_tests/_autogenerated_ui_elements.py +/tests/ui/_autogenerated_ui_elements.py # misc .DS_Store diff --git a/tests/ui/_autogenerated_ui_elements.py b/tests/ui/_autogenerated_ui_elements.py deleted file mode 100644 index 5a6b37c5..00000000 --- a/tests/ui/_autogenerated_ui_elements.py +++ /dev/null @@ -1,21 +0,0 @@ -"""AUTO GENERATED BY generate_ui_test_elements.py""" - - -class DataTestTags: # pylint: disable=too-few-public-methods - """list of all tags found in src/*.ts*""" - - DATAGRID = "datagrid" - DATAGRID_ADD_COLUMN_BUTTON = "datagrid-add-column-button" - DATAGRID_ALL_COUNT = "datagrid-all-count" - DATAGRID_ALL_TAB_BUTTON = "datagrid-all-tab-button" - DATAGRID_FILTERED_COUNT = "datagrid-filtered-count" - DATAGRID_FILTERED_TAB_BUTTON = "datagrid-filtered-tab-button" - DATAGRID_SELECTED_COUNT = "datagrid-selected-count" - DATAGRID_SELECTED_TAB_BUTTON = "datagrid-selected-tab-button" - DATAGRID_SETTINGS_DROPDOWN = "datagrid-settings-dropdown" - GLOBAL_LOADING_INDICATOR = "global-loading-indicator" - HELP_BUTTON = "help-button" - MESHVIEW_SETTINGS_DROPDOWN = "meshview-settings-dropdown" - SEQUENCEVIEW_SETTINGS_DROPDOWN = "sequenceview-settings-dropdown" - SIMILARITYMAP = "similaritymap" - SIMILARITYMAP_SETTINGS_DROPDOWN = "similaritymap-settings-dropdown" diff --git a/tests/ui/generate_ui_test_elements.py b/tests/ui/generate_ui_test_elements.py index dee66cc4..df5021e9 100644 --- a/tests/ui/generate_ui_test_elements.py +++ b/tests/ui/generate_ui_test_elements.py @@ -22,7 +22,7 @@ def generate_ui_test_elements_py() -> None: """Get tagged elements and create a python file containing all tags as constants""" data_tags = get_data_tags_from_src("src/") with open( - "ui_tests/_autogenerated_ui_elements.py", "w", encoding="utf-8" + "tests/ui/_autogenerated_ui_elements.py", "w", encoding="utf-8" ) as tagged_src: tagged_src.write(f'"""AUTO GENERATED BY {Path(__file__).name}"""\n\n\n')