From f2d98aedb13d662eb3cc273e06f96a3195467b3d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 20 Apr 2022 02:52:14 +0200 Subject: [PATCH] python3Packags.geoalchemy2: disable test that depend on pgsql instance --- .../python-modules/geoalchemy2/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/geoalchemy2/default.nix b/pkgs/development/python-modules/geoalchemy2/default.nix index 8457d74a4811..9260bb6e3c39 100644 --- a/pkgs/development/python-modules/geoalchemy2/default.nix +++ b/pkgs/development/python-modules/geoalchemy2/default.nix @@ -34,6 +34,12 @@ buildPythonPackage rec { pytestCheckHook ]; + pytestFlagsArray = [ + # tests require live postgis database + "--deselect=tests/test_pickle.py::TestPickle::test_pickle_unpickle" + "--deselect=tests/gallery/test_specific_compilation.py::test_specific_compilation" + ]; + disabledTestPaths = [ # tests require live postgis database "tests/gallery/test_decipher_raster.py" @@ -41,6 +47,11 @@ buildPythonPackage rec { "tests/gallery/test_summarystatsagg.py" "tests/gallery/test_type_decorator.py" "tests/test_functional.py" + "tests/test_functional_postgresql.py" + ]; + + pythonImportsCheck = [ + "geoalchemy2" ]; meta = with lib; {