11-Aug-2017 16:09:46 |
def test_streams_delete(caplog, host, key): |
11-Aug-2017 16:09:46 |
global sensor_id, stream_id |
11-Aug-2017 16:09:46 |
caplog.setLevel(logging.DEBUG) |
11-Aug-2017 16:09:46 |
sensor_client = SensorsApi(host=host, key=key) |
11-Aug-2017 16:09:46 |
response = sensor_client.sensor_delete(sensor_id) |
11-Aug-2017 16:09:46 |
|
11-Aug-2017 16:09:46 |
stream_client = StreamsApi(host=host, key=key) |
11-Aug-2017 16:09:46 |
response = stream_client.stream_delete(stream_id) |
11-Aug-2017 16:09:46 |
|
11-Aug-2017 16:09:46 |
> stream = response.json() |
11-Aug-2017 16:09:46 |
E AttributeError: 'NoneType' object has no attribute 'json' |
11-Aug-2017 16:09:46 |
|
11-Aug-2017 16:09:46 |
tests/test_streams.py:43: AttributeError |
11-Aug-2017 16:09:46 |
--------------------------------- Captured log --------------------------------- |
11-Aug-2017 16:09:46 |
sensors.py 104 DEBUG Deleting sensor |
11-Aug-2017 16:09:46 |
connectionpool.py 213 INFO Starting new HTTP connection (1): localhost |
11-Aug-2017 16:09:46 |
client.py 214 ERROR DELETE http://localhost:9000/clowder/api/geostreams/sensors/: HTTPConnectionPool(host='localhost', port=9000): Max retries exceeded with url: /clowder/api/geostreams/sensors/?key=r1ek3rs (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f7d2699d190>: Failed to establish a new connection: [Errno 111] Connection refused',)) |
11-Aug-2017 16:09:46 |
streams.py 91 DEBUG Deleting stream |
11-Aug-2017 16:09:46 |
connectionpool.py 213 INFO Starting new HTTP connection (1): localhost |
11-Aug-2017 16:09:46 |
client.py 214 ERROR DELETE http://localhost:9000/clowder/api/geostreams/streams/: HTTPConnectionPool(host='localhost', port=9000): Max retries exceeded with url: /clowder/api/geostreams/streams/?key=r1ek3rs (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f7d26a56fd0>: Failed to establish a new connection: [Errno 111] Connection refused',)) |
11-Aug-2017 16:09:46 |
============================ pytest-warning summary ============================ |
11-Aug-2017 16:09:46 |
WI1 /tmp/virtualenv/pyclowder2/local/lib/python2.7/site-packages/pytest_capturelog.py:171 'pytest_runtest_makereport' hook uses deprecated __multicall__ argument |
11-Aug-2017 16:09:46 |
WC1 None pytest_funcarg__caplog: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0. Please remove the prefix and use the @pytest.fixture decorator instead. |
11-Aug-2017 16:09:46 |
WC1 None pytest_funcarg__capturelog: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0. Please remove the prefix and use the @pytest.fixture decorator instead. |
11-Aug-2017 16:09:46 |
=========== 10 failed, 29 passed, 3 pytest-warnings in 0.58 seconds ============ |