Skip to content

Commit

Permalink
add mocker for check_db_credentials so tests can run without proper c…
Browse files Browse the repository at this point in the history
…redentials
  • Loading branch information
pmayd committed Jan 29, 2024
1 parent 8d67630 commit 0c0af52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_http_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def test_get_response_from_endpoint(mocker):
mocker.patch(
"pystatis.db.get_db_settings", return_value=("host", "user", "pw")
)
mocker.patch("pystatis.db.check_db_credentials", return_value=True)

get_data_from_endpoint(
endpoint="endpoint", method="method", params={"name": "21111-0001"}
Expand Down

0 comments on commit 0c0af52

Please sign in to comment.