Skip to content

Commit

Permalink
test: update them
Browse files Browse the repository at this point in the history
  • Loading branch information
janthijs committed Nov 28, 2023
1 parent b3a0f23 commit 9d2446e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/test_zorgned_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ def raise_for_status(self):


class ZorgnedServiceTest(TestCase):
@patch("app.zorgned_service.requests.get")
@patch("app.zorgned_service.requests.post")
def test_get_clientnummer_response(self, get_mock):
get_mock.return_value = ZorgnedApiMock(BASE_PATH + "/fixtures/persoon.json")

clientnummer = get_clientnummer(123)

self.assertEqual(clientnummer, 304184)

@patch("app.zorgned_service.requests.get")
@patch("app.zorgned_service.requests.post")
def test_get_clientnummer_not_found_response(self, get_mock):
get_mock.return_value = ZorgnedApiMock(status_code=404)

clientnummer = get_clientnummer(123)

self.assertEqual(clientnummer, None)

@patch("app.zorgned_service.requests.get")
@patch("app.zorgned_service.requests.post")
def test_get_clientnummer_bad_request_response(self, get_mock):
get_mock.return_value = ZorgnedApiMock(status_code=400)

Expand Down

0 comments on commit 9d2446e

Please sign in to comment.