Skip to content

Commit c81d3f8

Browse files
authored
Mock server in WFS provider tests (#1534)
* Mock server in WFS provider tests This commit mocks the layer in WFS tests and prepares return values required to satisfy the tests. This reduces the test fidelity, but it makes them stable and increases execution speed (literally 100x on my machine, 66 sec to 0.6 sec). Since the return value is mocked, it doesn't make sense to send different parameters to the server, so some tests became obsolete. The original tests are still there in another file, but are not supposed to be run in CI. * Mention wfs live tests in github CI * Comment test file where all tests are skipped pytest considers this to be a failure, but we still want the test file to be mentioned here
1 parent 5accd7f commit c81d3f8

3 files changed

Lines changed: 548 additions & 358 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ jobs:
148148
pytest tests/test_ogr_shapefile_provider.py
149149
pytest tests/test_ogr_sqlite_provider.py
150150
pytest tests/test_ogr_wfs_provider.py
151+
# pytest tests/test_ogr_wfs_provider_live.py # NOTE: these are skipped in the file but listed here for completeness
151152
pytest tests/test_openapi.py
152153
pytest tests/test_oracle_provider.py
153154
pytest tests/test_postgresql_provider.py

0 commit comments

Comments
 (0)