Skip to content

Commit

Permalink
test: unskip relevant tests #309
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Feb 8, 2022
1 parent 56d613d commit 786eb1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
9 changes: 1 addition & 8 deletions test/search_api/endpoints/test_count_dataset_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ class TestSearchAPICountDatasetFilesEndpoint:
"{}",
{"count": 56},
id="Basic /datasets/{pid}/files/count request",
# Skipped because empty dict for filter doesn't work on where
marks=pytest.mark.skip,
),
pytest.param(
"0-8401-1070-7",
Expand All @@ -40,12 +38,7 @@ class TestSearchAPICountDatasetFilesEndpoint:
id="Count dataset files with filter to return zero count",
),
pytest.param(
"unknown pid",
"{}",
{"count": 0},
id="Non-existent dataset pid",
# Skipped because empty dict for filter doesn't work on where
marks=pytest.mark.skip,
"unknown pid", "{}", {"count": 0}, id="Non-existent dataset pid",
),
],
)
Expand Down
16 changes: 2 additions & 14 deletions test/search_api/endpoints/test_count_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,16 @@ class TestSearchAPICountEndpoint:
"endpoint_name, request_filter, expected_json",
[
pytest.param(
"datasets",
"{}",
{"count": 479},
id="Basic /datasets/count request",
# Skipped because empty dict for filter doesn't work on where
marks=pytest.mark.skip,
"datasets", "{}", {"count": 479}, id="Basic /datasets/count request",
),
pytest.param(
"documents",
"{}",
{"count": 239},
id="Basic /documents/count request",
# Skipped because empty dict for filter doesn't work on where
marks=pytest.mark.skip,
"documents", "{}", {"count": 239}, id="Basic /documents/count request",
),
pytest.param(
"instruments",
"{}",
{"count": 14},
id="Basic /instruments/count request",
# Skipped because empty dict for filter doesn't work on where
marks=pytest.mark.skip,
),
pytest.param(
"datasets",
Expand Down

0 comments on commit 786eb1a

Please sign in to comment.