diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-09 15:33:48 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-09 15:40:07 +0100 |
commit | e7824b93359d754c2e9ade5e1f58786d3ac455d8 (patch) | |
tree | bc0e648cb746ddf29afd3b91a2986ac3080f81fd /src | |
parent | 6676b4ed90e19e2fd6ee5f4242cf85f64db145d8 (diff) | |
download | haketilo-hydrilla-e7824b93359d754c2e9ade5e1f58786d3ac455d8.tar.gz haketilo-hydrilla-e7824b93359d754c2e9ade5e1f58786d3ac455d8.zip |
change file path format
From now on we'll be using format 'file/sha256/<hash>' instead of 'file/sha256-<hash>'.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_server.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |