22-Aug-2017 14:01:13 |
def test_streams_delete(caplog, host, key): |
22-Aug-2017 14:01:13 |
global sensor_id, stream_id |
22-Aug-2017 14:01:13 |
caplog.setLevel(logging.DEBUG) |
22-Aug-2017 14:01:13 |
sensor_client = SensorsApi(host=host, key=key) |
22-Aug-2017 14:01:13 |
response = sensor_client.sensor_delete(sensor_id) |
22-Aug-2017 14:01:13 |
|
22-Aug-2017 14:01:13 |
stream_client = StreamsApi(host=host, key=key) |
22-Aug-2017 14:01:13 |
response = stream_client.stream_delete(stream_id) |
22-Aug-2017 14:01:13 |
|
22-Aug-2017 14:01:13 |
> stream = response.json() |
22-Aug-2017 14:01:13 |
E AttributeError: 'NoneType' object has no attribute 'json' |
22-Aug-2017 14:01:13 |
|
22-Aug-2017 14:01:13 |
tests/test_streams.py:41: AttributeError |
22-Aug-2017 14:01:13 |
--------------------------------- Captured log --------------------------------- |
22-Aug-2017 14:01:13 |
sensors.py 101 DEBUG Deleting sensor |
22-Aug-2017 14:01:13 |
connectionpool.py 213 INFO Starting new HTTP connection (1): localhost |
22-Aug-2017 14:01:13 |
client.py 211 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 0x7f6c1514f550>: Failed to establish a new connection: [Errno 111] Connection refused',)) |
22-Aug-2017 14:01:13 |
streams.py 90 DEBUG Deleting stream |
22-Aug-2017 14:01:13 |
connectionpool.py 213 INFO Starting new HTTP connection (1): localhost |
22-Aug-2017 14:01:13 |
client.py 211 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 0x7f6c1514f9d0>: Failed to establish a new connection: [Errno 111] Connection refused',)) |
22-Aug-2017 14:01:13 |
============================ pytest-warning summary ============================ |
22-Aug-2017 14:01:13 |
WI1 /tmp/virtualenv/pyclowder2/local/lib/python2.7/site-packages/pytest_capturelog.py:171 'pytest_runtest_makereport' hook uses deprecated __multicall__ argument |
22-Aug-2017 14:01:13 |
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. |
22-Aug-2017 14:01:13 |
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. |
22-Aug-2017 14:01:13 |
=========== 19 failed, 20 passed, 3 pytest-warnings in 0.58 seconds ============ |