Skip to content

Commit d725c62

Browse files
Fixing issues
1 parent 4c3794e commit d725c62

File tree

1 file changed

+21
-22
lines changed
  • tests/regression/subject/episodes/datasets/investigation/endoscopy/polypcategories

1 file changed

+21
-22
lines changed

tests/regression/subject/episodes/datasets/investigation/endoscopy/polypcategories/test_setup.py

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ def before_each(page: Page, request: FixtureRequest) -> None:
8585
setup_appointments(page)
8686

8787

88-
@pytest.mark.setup
8988
@pytest.mark.vpn_required
9089
def test_setup_subjects_as_a99(page: Page, subjects_to_run_for: int) -> None:
9190
"""
@@ -123,27 +122,27 @@ def test_setup_subjects_as_a259(page: Page, subjects_to_run_for: int) -> None:
123122
"""
124123
page = page.context.new_page()
125124
page.goto("/")
126-
# criteria = {
127-
# "latest episode status": "open",
128-
# "latest episode latest investigation dataset": "colonoscopy_new",
129-
# "latest episode started": "less than 4 years ago",
130-
# }
131-
# user = User()
132-
# subject = Subject()
133-
134-
# builder = SubjectSelectionQueryBuilder()
135-
136-
# query, bind_vars = builder.build_subject_selection_query(
137-
# criteria=criteria,
138-
# user=user,
139-
# subject=subject,
140-
# subjects_to_retrieve=subjects_to_run_for,
141-
# )
142-
143-
# df = OracleDB().execute_query(query, bind_vars)
144-
145-
# if df.shape[0] == subjects_to_run_for:
146-
# pytest.skip("Enough subjects found, no need to run test setup")
125+
criteria = {
126+
"latest episode status": "open",
127+
"latest episode latest investigation dataset": "colonoscopy_new",
128+
"latest episode started": "less than 4 years ago",
129+
}
130+
user = User()
131+
subject = Subject()
132+
133+
builder = SubjectSelectionQueryBuilder()
134+
135+
query, bind_vars = builder.build_subject_selection_query(
136+
criteria=criteria,
137+
user=user,
138+
subject=subject,
139+
subjects_to_retrieve=subjects_to_run_for,
140+
)
141+
142+
df = OracleDB().execute_query(query, bind_vars)
143+
144+
if df.shape[0] == subjects_to_run_for:
145+
pytest.skip("Enough subjects found, no need to run test setup")
147146

148147
criteria = {
149148
"latest event status": "S9",

0 commit comments

Comments
 (0)