Next Generation of pyClowder

Build: #23 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

datapoints count by sensor get: Test case result

The below summarizes the result of the test " datapoints count by sensor get" in build 23 of Clowder - pyclowder2 - geostreams - Default Job.
Description
datapoints count by sensor get
Test class
tests.test_datapoints
Method
test_datapoints_count_by_sensor_get
Duration
< 1 sec
Status
Failed (Existing Failure)

Error Log

TypeError: not enough arguments for format string
caplog = <pytest_capturelog.CaptureLogFuncArg object at 0x7fbbe8c069d0>
host = 'http://localhost:9000/clowder', key = 'r1ek3rs'

    def test_datapoints_count_by_sensor_get(caplog, host, key):
        caplog.setLevel(logging.DEBUG)
        client = DatapointsApi(host=host, key=key)
>       response = client.datapoints_count_by_sensor_get(950)

tests/test_datapoints.py:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pyclowder.geostreams.datapoints.DatapointsApi object at 0x7fbbe8c06b90>
sensor_id = 950

    def datapoints_count_by_sensor_get(self, sensor_id):
        """
            Get the list of all available sensors.
    
            :return: Full list of sensors.
            :rtype: `requests.Response`
            """
        logging.debug("Counting datapoints by sensor")
        try:
            return self.client.get("/geostreams/datapoints?sensor_id=%s&onlyCount=true" % sensor_id)
        except Exception as e:
>           logging.error("Error counting datapoints by sensor %s: %s" % sensor_id, e.message)
E           TypeError: not enough arguments for format string

pyclowder/geostreams/datapoints.py:45: TypeError
--------------------------------- Captured log ---------------------------------
datapoints.py               41 DEBUG    Counting datapoints by sensor
connectionpool.py          213 INFO     Starting new HTTP connection (1): localhost