From 3ada6415345ab2563e3cb28da4cba1ac8d14cb68 Mon Sep 17 00:00:00 2001 From: Matt Garber Date: Mon, 7 Oct 2024 15:46:43 -0400 Subject: [PATCH] invalid ID test --- tests/dashboard/test_get_data_packages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/dashboard/test_get_data_packages.py b/tests/dashboard/test_get_data_packages.py index 468dcbc..016dbdc 100644 --- a/tests/dashboard/test_get_data_packages.py +++ b/tests/dashboard/test_get_data_packages.py @@ -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