Skip to content

Commit

Permalink
WIP: assessing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Filienko committed Dec 14, 2023
1 parent 75a0920 commit 53b3d9f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,18 @@ def test_existing_active(
mocker,

Check failure on line 199 in tests/test_sync.py

View workflow job for this annotation

GitHub Actions / Flake8

tests/test_sync.py#L199

Trailing whitespace (W291)
faux_token,

Check failure on line 200 in tests/test_sync.py

View workflow job for this annotation

GitHub Actions / Flake8

tests/test_sync.py#L200

Trailing whitespace (W291)
external_patient_search_active,
internal_patient_active_match,
internal_patient_inactive_match,

Check failure on line 202 in tests/test_sync.py

View workflow job for this annotation

GitHub Actions / Flake8

tests/test_sync.py#L202

Trailing whitespace (W291)
):
"""Finding a matching active patient from active external search, return existing"""

# Mock HAPI search finding a matching active patient
mocker.patch(
"patientsearch.models.sync.requests.get",
return_value=mock_response(internal_patient_active_match),
return_value=mock_response(internal_patient_inactive_match),
)

result = sync_bundle(faux_token, external_patient_search_active)
assert result == internal_patient_active_match["entry"][0]["resource"]
assert result == internal_patient_inactive_match["entry"][0]["resource"]


def test_existing_inactive(
Expand Down Expand Up @@ -270,7 +270,6 @@ def test_existing_modified(
assert result == identified_internal
assert result["identifier"] == [found_identifier]


def test_duplicate(

Check failure on line 273 in tests/test_sync.py

View workflow job for this annotation

GitHub Actions / Flake8

tests/test_sync.py#L273

Expected 2 blank lines, found 1 (E302)
client,
mocker,
Expand Down

0 comments on commit 53b3d9f

Please sign in to comment.