Skip to content

Commit

Permalink
invalid ID test
Browse files Browse the repository at this point in the history
  • Loading branch information
dogversioning committed Oct 7, 2024
1 parent f9b9ee8 commit 3ada641
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/dashboard/test_get_data_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ def test_get_data_packages(mock_bucket):
assert res["statusCode"] == 200
assert 9 == len(data)
assert data["id"] == "other_study__document__100"
res = data_packages_handler({"pathParameters": {"id": "not_an_id"}}, {})
data = json.loads(res["body"])
assert res["statusCode"] == 404

0 comments on commit 3ada641

Please sign in to comment.