aboutsummaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-08 10:32:10 +0300
committerFrederick Muriuki Muriithi2024-04-08 10:32:10 +0300
commit619bf2e80dd6c225a4121507f0b9374598b94ea6 (patch)
treecc473938d499435e6d37393b1b82e3b9acde2ab8 /tests/conftest.py
parentd5833b207185597d63bbc5ff2b0cc0df6df4ab69 (diff)
downloadgn-uploader-619bf2e80dd6c225a4121507f0b9374598b94ea6.tar.gz
Fix issues caught by integration tests.
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index e4bebc6..a39acf0 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -135,8 +135,8 @@ def redis_conn_with_in_progress_job_some_errors(redis_url, redis_ttl, jobs_prefi
"status": "Processing", "filename": "/path/to/some/file.tsv",
"percent": 45.34245, "errors": jsonpickle.encode((
DuplicateHeading(
- 1, (5,13,19), "DupHead", "Heading 'DupHead' is repeated"),
- InvalidValue(45, 2, "ohMy", "Invalid value 'ohMy'")))}
+ "__test__", 1, (5,13,19), "DupHead", "Heading 'DupHead' is repeated"),
+ InvalidValue("__test__", 45, 2, "ohMy", "Invalid value 'ohMy'")))}
}
with redis.Redis.from_url(redis_url, decode_responses=True) as rconn:
jobs.initialise_job(rconn, **the_job)
@@ -167,8 +167,8 @@ def redis_conn_with_completed_job_some_errors(redis_url, redis_ttl, jobs_prefix,
"status": "success", "filename": "/path/to/some/file.tsv",
"percent": 100, "errors": jsonpickle.encode((
DuplicateHeading(
- 1, (5,13,19), "DupHead", "Heading 'DupHead' is repeated"),
- InvalidValue(45, 2, "ohMy", "Invalid value 'ohMy'")))}}
+ "__test__", 1, (5,13,19), "DupHead", "Heading 'DupHead' is repeated"),
+ InvalidValue("__test__", 45, 2, "ohMy", "Invalid value 'ohMy'")))}}
with redis.Redis.from_url(redis_url, decode_responses=True) as rconn:
jobs.initialise_job(rconn, **the_job)
yield rconn