Skip to content

Commit c8cd940

Browse files
task(req): links missing Platform Module Specification with tests [skip:ci]
1 parent ded6bbd commit c8cd940

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

specifications/SPEC-UTILS-SERVICE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
itemId: SPEC-UTILS-SERVICE
33
itemTitle: Utils Module Specification
44
itemType: Software Item Spec
5-
itemFulfills:
5+
itemFulfills: SPEC-APPLICATION-SERVICE, SPEC-BUCKET-SERVICE, SPEC-DATASET-SERVICE, SPEC-NOTEBOOK-SERVICE, SPEC-QUPATH-SERVICE, SPEC-SYSTEM-SERVICE
66
itemIsRelatedTo: SPEC-APPLICATION-SERVICE, SPEC-GUI-SERVICE, SPEC-BUCKET-SERVICE, SPEC-DATASET-SERVICE, SPEC-NOTEBOOK-SERVICE, SPEC-PLATFORM-SERVICE, SPEC-QUPATH-SERVICE, SPEC-SYSTEM-SERVICE, SPEC-WSI-SERVICE
77
Module: Utils
88
Layer: Infrastructure Service

tests/aignostics/application/gui_test.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525

2626

2727
@pytest.mark.sequential
28-
async def test_gui_index(user: User) -> None:
28+
async def test_gui_index(user: User, record_property) -> None:
2929
"""Test that the user sees the index page, and sees the intro."""
30+
record_property("tested-item-id", "SPEC-APPLICATION-SERVICE")
3031
# hello world
3132
gui_register_pages()
3233
await user.open("/")
@@ -50,9 +51,10 @@ async def test_gui_index(user: User) -> None:
5051
],
5152
)
5253
async def test_gui_home_to_application(
53-
user: User, application_id: str, application_name: str, expected_text: str, silent_logging: None
54+
user: User, application_id: str, application_name: str, expected_text: str, silent_logging: None, record_property
5455
) -> None:
5556
"""Test that the user sees the specific application page with expected content."""
57+
record_property("tested-item-id", "SPEC-APPLICATION-SERVICE")
5658
gui_register_pages()
5759
await user.open("/")
5860
await user.should_see(application_name, retries=100)
@@ -61,8 +63,9 @@ async def test_gui_home_to_application(
6163

6264

6365
@pytest.mark.flaky(retries=1, delay=5, only_on=[AssertionError])
64-
async def test_gui_cli_to_run_cancel(user: User, runner: CliRunner, silent_logging) -> None:
66+
async def test_gui_cli_to_run_cancel(user: User, runner: CliRunner, silent_logging: None, record_property) -> None:
6567
"""Test that the user sees the index page, and sees the intro."""
68+
record_property("tested-item-id", "SPEC-APPLICATION-SERVICE")
6669
with tempfile.TemporaryDirectory() as tmpdir:
6770
gui_register_pages()
6871

@@ -208,8 +211,11 @@ async def test_gui_download_dataset_via_application_to_run_cancel( # noqa: PLR0
208211

209212

210213
@pytest.mark.sequential
211-
async def test_gui_run_download(user: User, runner: CliRunner, tmp_path: Path, silent_logging: None) -> None:
214+
async def test_gui_run_download(
215+
user: User, runner: CliRunner, tmp_path: Path, silent_logging: None, record_property
216+
) -> None:
212217
"""Test that the user can download a run result via the GUI."""
218+
record_property("tested-item-id", "SPEC-APPLICATION-SERVICE")
213219
with patch(
214220
"aignostics.application._gui._page_application_run_describe.get_user_data_directory", return_value=tmp_path
215221
):

0 commit comments

Comments
 (0)