about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ihatemoney
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-09-15 11:01:19 -0700
committerJonathan Ringer <jonringer117@gmail.com>2020-09-15 11:01:19 -0700
commit43d588b0afd4223f0d6b724d29d59ff81587eda2 (patch)
treed54e5dde3412cead27b775bfc580c1ad7f809bd5 /pkgs/development/python-modules/ihatemoney
parentfeda1d67d21a5b3976a8593453703b121f7040b9 (diff)
downloadnixlib-43d588b0afd4223f0d6b724d29d59ff81587eda2.tar
nixlib-43d588b0afd4223f0d6b724d29d59ff81587eda2.tar.gz
nixlib-43d588b0afd4223f0d6b724d29d59ff81587eda2.tar.bz2
nixlib-43d588b0afd4223f0d6b724d29d59ff81587eda2.tar.lz
nixlib-43d588b0afd4223f0d6b724d29d59ff81587eda2.tar.xz
nixlib-43d588b0afd4223f0d6b724d29d59ff81587eda2.tar.zst
nixlib-43d588b0afd4223f0d6b724d29d59ff81587eda2.zip
python3Packages.ihatemoney: disable sandbox unfriendly tests, fix passthru
Diffstat (limited to 'pkgs/development/python-modules/ihatemoney')
-rw-r--r--pkgs/development/python-modules/ihatemoney/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/ihatemoney/default.nix b/pkgs/development/python-modules/ihatemoney/default.nix
index bcca68600e98..3e36b4dd8e2d 100644
--- a/pkgs/development/python-modules/ihatemoney/default.nix
+++ b/pkgs/development/python-modules/ihatemoney/default.nix
@@ -30,6 +30,7 @@
 , wtforms
 , psycopg2 # optional, for postgresql support
 , flask_testing
+, pytestCheckHook
 }:
 
 # ihatemoney is not really a library. It will only ever be imported
@@ -113,12 +114,19 @@ buildPythonPackage rec {
   ];
 
   checkInputs = [
-    flask_testing
+    flask_testing pytestCheckHook
+  ];
+
+  pytestFlagsArray = [ "--pyargs ihatemoney.tests.tests" ];
+  disabledTests = [
+    "test_notifications"  # requires running service.
+    "test_invite"         # requires running service.
   ];
 
   passthru.tests = {
-    inherit (nixosTests) ihatemoney;
+    inherit (nixosTests.ihatemoney) ihatemoney-postgresql ihatemoney-sqlite;
   };
+
   meta = with lib; {
     homepage = "https://ihatemoney.org";
     description = "A simple shared budget manager web application";