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