From 7a0a6eddce62ba47a8fb2d3db62d1eacb7fadc74 Mon Sep 17 00:00:00 2001 From: Jakub Skokan Date: Thu, 28 Sep 2023 16:19:08 +0200 Subject: [PATCH] bepasty: enable tests --- pkgs/tools/misc/bepasty/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/bepasty/default.nix b/pkgs/tools/misc/bepasty/default.nix index f25a99f8ecb7..9bf8c8e3ae16 100644 --- a/pkgs/tools/misc/bepasty/default.nix +++ b/pkgs/tools/misc/bepasty/default.nix @@ -50,12 +50,25 @@ in with bepastyPython.pkgs; buildPythonPackage rec { }; nativeCheckInputs = [ - pytest + build + codecov + flake8 + pytestCheckHook + pytest-cov selenium + tox + twine ]; - # No tests in sdist - doCheck = false; + disabledTestPaths = [ + # Can be enabled when werkzeug is updated to >2.2, see #245145 + # and https://github.com/bepasty/bepasty-server/pull/303 + "src/bepasty/tests/test_rest_server.py" + + # These require a web browser + "src/bepasty/tests/screenshots.py" + "src/bepasty/tests/test_website.py" + ]; meta = { homepage = "https://github.com/bepasty/bepasty-server";