diff options
author | Bryan Newbold <bnewbold@archive.org> | 2022-05-05 11:21:29 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2022-05-05 11:21:29 -0700 |
commit | 21ad5cd9942044939c8203dd076ea080b6d55a61 (patch) | |
tree | 2ffbf6a641302615275fecf233eb8351c3ecf0a1 /python/tests/test_ingest.py | |
parent | 1f9ca570bd168154a72adcd2454b992dbc7e8d0a (diff) | |
download | sandcrawler-21ad5cd9942044939c8203dd076ea080b6d55a61.tar.gz sandcrawler-21ad5cd9942044939c8203dd076ea080b6d55a61.zip |
ingest spn2: fix tests
Diffstat (limited to 'python/tests/test_ingest.py')
-rw-r--r-- | python/tests/test_ingest.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/python/tests/test_ingest.py b/python/tests/test_ingest.py index ad8c22e..e14a452 100644 --- a/python/tests/test_ingest.py +++ b/python/tests/test_ingest.py @@ -50,6 +50,19 @@ def test_ingest_success(ingest_worker_pdf): "base_url": "http://dummy-host/", } responses.add( + responses.GET, + "http://dummy-spnv2/save/status/user", + status=200, + body=json.dumps( + { + "available": 23, + "daily_captures": 60295, + "daily_captures_limit": 300000, + "processing": 1, + } + ), + ) + responses.add( responses.POST, "http://dummy-spnv2/save", status=200, @@ -136,6 +149,19 @@ def test_ingest_landing(ingest_worker): "base_url": "http://dummy-host/", } responses.add( + responses.GET, + "http://dummy-spnv2/save/status/user", + status=200, + body=json.dumps( + { + "available": 23, + "daily_captures": 60295, + "daily_captures_limit": 300000, + "processing": 1, + } + ), + ) + responses.add( responses.POST, "http://dummy-spnv2/save", status=200, |