geopython / pywps

PyWPS is an implementation of the Web Processing Service standard from the Open Geospatial Consortium. PyWPS is written in Python.
https://pywps.org
MIT License
175 stars 117 forks source link

Sanitize tests suite #684

Closed gschwind closed 10 months ago

gschwind commented 11 months ago

Overview

The patch suite sanitize tests by ensuring that all test run in his own temporary directory and use his own configuration. Moreover each test use their own sqlite database and do not use anymore the memory database. All test should run without side effect on other tests. The patch also ensure that no test file leak and cleanup created files during the tests (check /tmp after run tests before/after the patch suite). It is also setup pytest to run in importlib mode as advised by pytest web page and remove source file from the tests path to ensure that only pip installed files are tested.

The patch suite include #680 , #681 and #682 to work properly.

It's also fix some tests

Related Issue / Discussion

Additional Information

Contribution Agreement

(as per https://github.com/geopython/pywps/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

cehbrecht commented 10 months ago

py37 will be skipped in future PR.