From e7824b93359d754c2e9ade5e1f58786d3ac455d8 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 9 Feb 2022 15:33:48 +0100 Subject: change file path format From now on we'll be using format 'file/sha256/' instead of 'file/sha256-'. --- src/test/test_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test_server.py b/src/test/test_server.py index def48dc..b3ea741 100644 --- a/src/test/test_server.py +++ b/src/test/test_server.py @@ -128,7 +128,7 @@ def test_file_refs(client: FlaskClient, item_type: str) -> None: for file_ref in [*definition.get('scripts', []), *definition['source_copyright']]: hash_sum = file_ref["sha256"] - response = client.get(f'/file/sha256-{hash_sum}') + response = client.get(f'/file/sha256/{hash_sum}') assert response.status_code == 200 assert sha256(response.data).digest().hex() == hash_sum -- cgit v1.2.3