blob: 41d2c26a2c66f9c52383ba1fc9f920c6affb46f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import pytest
def test_parse_with_existing_file(client, monkeypatch):
monkeypatch.setattr(
"qc_app.jobs.uuid4", lambda : "934c55d8-396e-4959-90e1-2698e9205758")
resp = client.get(
"/parse/parse?filename=no_data_errors.tsv&filetype=average")
print(resp.status)
print(resp.data)
assert resp.status_code == 302
assert b'Redirecting...' in resp.data
assert b'/parse/status/934c55d8-396e-4959-90e1-2698e9205758' in resp.data
|