Next Generation of pyClowder

Build: #7 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

sensors get: Test case result

The below summarizes the result of the test " sensors get" in build 7 of Clowder - pyclowder2 - seven-miles-changes - Default Job.
Description
sensors get
Test class
tests.test_sensors
Method
test_sensors_get
Duration
< 1 sec
Status
Failed (Existing Failure)

Error Log

AttributeError: 'NoneType' object has no attribute 'json'
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fb5fe967650>
host = 'http://localhost:9000/clowder', key = 'r1ek3rs'

    def test_sensors_get(caplog, host, key):
        global sensor_id
        caplog.setLevel(logging.DEBUG)
        client = SensorsApi(host=host, key=key)
        response = client.sensor_get(sensor_id)
>       sensor = response.json()
E       AttributeError: 'NoneType' object has no attribute 'json'

tests/test_sensors.py:24: AttributeError
--------------------------------- Captured log ---------------------------------
sensors.py                  40 DEBUG    Getting sensor 
connectionpool.py          213 INFO     Starting new HTTP connection (1): localhost
sensors.py                  44 ERROR    Error retrieving sensor : not enough arguments for format string