Updating SensorThing test
This commit is contained in:
@@ -77,7 +77,7 @@ jobs:
|
||||
- name: Install and run SensorThingsAPI
|
||||
uses: cgs-earth/sensorthings-action@v0.0.2
|
||||
- name: Install sqlite and gpkg dependencies
|
||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1.2.0
|
||||
with:
|
||||
packages: libsqlite3-mod-spatialite
|
||||
version: 1.0
|
||||
|
||||
@@ -48,7 +48,7 @@ def config():
|
||||
def test_query_datastreams(config):
|
||||
p = SensorThingsProvider(config)
|
||||
fields = p.get_fields()
|
||||
assert len(fields) == 15
|
||||
assert len(fields) == 16
|
||||
assert fields['Thing']['type'] == 'number'
|
||||
assert fields['Observations']['type'] == 'number'
|
||||
assert fields['@iot.id']['type'] == 'number'
|
||||
@@ -70,7 +70,7 @@ def test_query_datastreams(config):
|
||||
assert len(results['features']) == 1
|
||||
assert results['features'][0]['id'] == '3'
|
||||
|
||||
assert len(results['features'][0]['properties']) == 17
|
||||
assert len(results['features'][0]['properties']) == 18
|
||||
|
||||
results = p.query(bbox=[-109, 36, -106, 37])
|
||||
assert results['numberReturned'] == 8
|
||||
|
||||
Reference in New Issue
Block a user