Next Generation of pyClowder
Build: #8 failed
Job: Default Job failed
streams post: Test case result
The below summarizes the result of the test " streams post" in build 8 of Clowder - pyclowder2 - seven-miles-changes - Default Job.
- Description
- streams post
- Test class
- tests.test_streams
- Method
- test_streams_post
- Duration
- < 1 sec
- Status
- Failed (Existing Failure)
Error Log
TypeError: 'NoneType' object has no attribute '__getitem__' caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7f6014991690> host = 'http://localhost:9000/clowder', key = 'r1ek3rs' def test_streams_post(caplog, host, key): global sensor_id, stream_id caplog.setLevel(logging.DEBUG) sensor_client = SensorsApi(host=host, key=key) sensor_json = sensor_client.sensor_create_json("Test Sensor", 40.1149202, -88.2270582, 0, "", "ER") sensor_body = sensor_client.sensor_post_json(sensor_json) > sensor_id = sensor_body['id'] E TypeError: 'NoneType' object has no attribute '__getitem__' tests/test_streams.py:14: TypeError --------------------------------- Captured log --------------------------------- sensors.py 80 DEBUG Adding or getting sensor sensors.py 53 DEBUG Getting sensor Test Sensor connectionpool.py 213 INFO Starting new HTTP connection (1): localhost sensors.py 57 ERROR Error retrieving sensor Test Sensor: not enough arguments for format string sensors.py 92 ERROR Error adding sensor Test Sensor: 'NoneType' object has no attribute 'json'