From 9c9111b096bab6342d298a0b05930eac6d3bb0ce Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Tue, 10 Jan 2023 11:36:15 +0200 Subject: [PATCH] Updating SensorThing test --- .github/workflows/main.yml | 2 +- tests/test_sensorthings_provider.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9342143..83f4ec8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/tests/test_sensorthings_provider.py b/tests/test_sensorthings_provider.py index a221efb..49c5dbd 100644 --- a/tests/test_sensorthings_provider.py +++ b/tests/test_sensorthings_provider.py @@ -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