about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2024-03-08 09:22:20 -0800
committerRobert Schütz <nix@dotlambda.de>2024-03-13 14:37:37 -0700
commitfbeaed901b352d68af3e4d1d53853317aec06fe0 (patch)
tree20ffadca16c3623a6f01a9f5b7c7d8868f9ff7a3 /pkgs
parent2c08f884092a0c3679a4007bc27a595e23dd2119 (diff)
downloadnixlib-fbeaed901b352d68af3e4d1d53853317aec06fe0.tar
nixlib-fbeaed901b352d68af3e4d1d53853317aec06fe0.tar.gz
nixlib-fbeaed901b352d68af3e4d1d53853317aec06fe0.tar.bz2
nixlib-fbeaed901b352d68af3e4d1d53853317aec06fe0.tar.lz
nixlib-fbeaed901b352d68af3e4d1d53853317aec06fe0.tar.xz
nixlib-fbeaed901b352d68af3e4d1d53853317aec06fe0.tar.zst
nixlib-fbeaed901b352d68af3e4d1d53853317aec06fe0.zip
python311Packages.systembridgeconnector: run tests
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/systembridgeconnector/default.nix19
1 files changed, 17 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/systembridgeconnector/default.nix b/pkgs/development/python-modules/systembridgeconnector/default.nix
index b21c1be499fe..f5bb1e63136b 100644
--- a/pkgs/development/python-modules/systembridgeconnector/default.nix
+++ b/pkgs/development/python-modules/systembridgeconnector/default.nix
@@ -7,6 +7,9 @@
 , aiohttp
 , incremental
 , systembridgemodels
+, pytest-aiohttp
+, pytest-socket
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
@@ -28,6 +31,10 @@ buildPythonPackage rec {
       url = "https://github.com/timmo001/system-bridge-connector/commit/a9030cf175ab4b51d77010de89e83cbb426448c2.patch";
       hash = "sha256-0N8knoaEvymSvC92BxDKR0j52oasvOzWosFtHMI2Qmc=";
     })
+    (fetchpatch2 {
+      url = "https://github.com/timmo001/system-bridge-connector/commit/25aa172775ee983dc4a29b8dda880aefbad70040.patch";
+      hash = "sha256-PedW1S1gZmWkS4sJBqSAx3aoA1KppYS5Xlhoaxqkcd4=";
+    })
   ];
 
   nativeBuildInputs = [
@@ -42,8 +49,16 @@ buildPythonPackage rec {
 
   pythonImportsCheck = [ "systembridgeconnector" ];
 
-  # upstream has no tests
-  doCheck = false;
+  nativeCheckInputs = [
+    pytest-aiohttp
+    pytest-socket
+    pytestCheckHook
+  ];
+
+  disabledTests = [
+    # ConnectionClosedException: Connection closed to server
+    "test_get_files"
+  ];
 
   meta = {
     changelog = "https://github.com/timmo001/system-bridge-connector/releases/tag/${version}";