mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
make the status api test pass in python 2
This commit is contained in:
parent
8caae0d7d3
commit
89643b7497
2
setup.py
2
setup.py
@ -51,7 +51,7 @@ except:
|
||||
|
||||
setuptools.setup(
|
||||
name='warcprox',
|
||||
version='2.1b1.dev59',
|
||||
version='2.1b1.dev60',
|
||||
description='WARC writing MITM HTTP/S proxy',
|
||||
url='https://github.com/internetarchive/warcprox',
|
||||
author='Noah Levitt',
|
||||
|
@ -1284,7 +1284,7 @@ def test_status_api(warcprox_):
|
||||
response = requests.get(url)
|
||||
assert response.status_code == 200
|
||||
response_dict = json.loads(response.content.decode('ascii'))
|
||||
assert response_dict.keys() == {
|
||||
assert set(response_dict.keys()) == {
|
||||
'role', 'version', 'host', 'address', 'port', 'pid', 'load',
|
||||
'queue_size'}
|
||||
assert response_dict['role'] == 'warcprox'
|
||||
|
Loading…
x
Reference in New Issue
Block a user