Skip to content

Commit

Permalink
test: fix failing tests #329
Browse files Browse the repository at this point in the history
  • Loading branch information
VKTB committed Feb 14, 2022
1 parent f8c823e commit e8beb57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/search_api/endpoints/test_count_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ def test_valid_count_endpoint(
pytest.param(
"datasets",
'{"isPublic": true}',
{"count": 462},
{"count": 479},
id="Dataset count with isPublic condition",
),
pytest.param(
"documents",
'{"isPublic": true}',
{"count": 76},
{"count": 239},
id="Document count with isPublic condition",
),
],
Expand Down
6 changes: 2 additions & 4 deletions test/search_api/test_models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from datetime import datetime, timezone

from pydantic import ValidationError
import pytest

Expand Down Expand Up @@ -88,7 +86,7 @@
INVESTIGATION_ICAT_DATA = {
"endDate": "2000-12-31 00:00:00+00:00",
"name": "Test name",
"releaseDate": str(datetime.now(timezone.utc)),
"releaseDate": "2000-12-31 00:00:00+00:00",
"id": 1,
"modTime": "2000-12-31 00:00:00+00:00",
"modId": "Test modId",
Expand Down Expand Up @@ -216,7 +214,7 @@

DOCUMENT_PANOSC_DATA = {
"pid": INVESTIGATION_ICAT_DATA["doi"],
"isPublic": False,
"isPublic": True,
"type": INVESTIGATION_TYPE_ICAT_DATA["name"],
"title": INVESTIGATION_ICAT_DATA["name"],
"summary": INVESTIGATION_ICAT_DATA["summary"],
Expand Down

0 comments on commit e8beb57

Please sign in to comment.