From bf085b31ac3790ce24feb07dfed6b0e7574ed183 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 28 May 2018 16:27:11 -0700 Subject: uuids in flask routes --- python/tests/routes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'python/tests/routes.py') diff --git a/python/tests/routes.py b/python/tests/routes.py index e11d024e..b4fb506c 100644 --- a/python/tests/routes.py +++ b/python/tests/routes.py @@ -18,10 +18,8 @@ def test_static_routes(app): def test_all_views(app): for route in ('work', 'release', 'creator', 'container', 'file'): print(route) - #with pytest.raises(ApiException) as api_fail: - # rv = app.get('/{}/999999999999'.format(route)) rv = app.get('/{}/9999999999'.format(route)) - assert rv.status_code == 400 + assert rv.status_code == 404 rv = app.get('/{}/f1f046a3-45c9-ffff-ffff-ffffffffffff'.format(route)) assert rv.status_code == 404 -- cgit v1.2.3