forked from venetoarpa/Arpav-PPCV-backend
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed incorrect calls to renamed db function (#175)
* Fixed incorrect calls to renamed db function * Fixed linting issues --------- Co-authored-by: Ricardo Garcia Silva <[email protected]>
- Loading branch information
1 parent
16a258a
commit d5c9f91
Showing
3 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import httpx | ||
|
||
from arpav_ppcv.schemas import coverages | ||
|
||
|
||
def test_coverage_configurations_list( | ||
test_client_v2_app: httpx.Client, | ||
sample_coverage_configurations: list[coverages.CoverageConfiguration], | ||
): | ||
list_response = test_client_v2_app.get( | ||
test_client_v2_app.app.url_path_for("list_coverage_configurations"), | ||
headers={"accept": "application/json"}, | ||
) | ||
assert list_response.status_code == 200 | ||
assert len(list_response.json()["items"]) == 10 | ||
|
||
|
||
def test_coverage_identifiers_list( | ||
test_client_v2_app: httpx.Client, | ||
sample_coverage_configurations: list[coverages.CoverageConfiguration], | ||
): | ||
list_response = test_client_v2_app.get( | ||
test_client_v2_app.app.url_path_for("list_coverage_identifiers"), | ||
headers={"accept": "application/json"}, | ||
) | ||
assert list_response.status_code == 200 |