Spaces:
Sleeping
Sleeping
rmm
commited on
Commit
·
05b3cf6
1
Parent(s):
2166c0c
test: updated markers for cleaner filtering
Browse files- pytest.ini +3 -1
- tests/test_main.py +2 -1
- tests/test_visual_main.py +2 -1
pytest.ini
CHANGED
@@ -5,4 +5,6 @@ testpaths =
|
|
5 |
|
6 |
markers =
|
7 |
component:
|
8 |
-
|
|
|
|
|
|
5 |
|
6 |
markers =
|
7 |
component:
|
8 |
+
end2end: following several steps of workflow
|
9 |
+
visual: rendering the site (using selenium)
|
10 |
+
slow: more than 5 seconds
|
tests/test_main.py
CHANGED
@@ -39,7 +39,8 @@ def nooop():
|
|
39 |
raise RuntimeError
|
40 |
pass
|
41 |
|
42 |
-
@pytest.mark.
|
|
|
43 |
@patch("streamlit.file_uploader")
|
44 |
def test_click_validate_after_data_entry(mock_file_rv: MagicMock, mock_uploadedFile_List_ImageData):
|
45 |
# this test goes through several stages of the workflow
|
|
|
39 |
raise RuntimeError
|
40 |
pass
|
41 |
|
42 |
+
@pytest.mark.end2end
|
43 |
+
@pytest.mark.slow
|
44 |
@patch("streamlit.file_uploader")
|
45 |
def test_click_validate_after_data_entry(mock_file_rv: MagicMock, mock_uploadedFile_List_ImageData):
|
46 |
# this test goes through several stages of the workflow
|
tests/test_visual_main.py
CHANGED
@@ -160,7 +160,8 @@ def switch_tab(self, tab_number):
|
|
160 |
|
161 |
class RecorderTest(BaseCase):
|
162 |
|
163 |
-
@pytest.mark.
|
|
|
164 |
def test_species_presentation(self):
|
165 |
# this test goes through several steps of the workflow, primarily to get to the point
|
166 |
# that species columns are displayed.
|
|
|
160 |
|
161 |
class RecorderTest(BaseCase):
|
162 |
|
163 |
+
@pytest.mark.slow
|
164 |
+
@pytest.mark.visual
|
165 |
def test_species_presentation(self):
|
166 |
# this test goes through several steps of the workflow, primarily to get to the point
|
167 |
# that species columns are displayed.
|