Loading pkgs/development/python-modules/actdiag/default.nix +3 −8 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ blockdiag, buildPythonPackage, fetchFromGitHub, nose, pytestCheckHook, pythonOlder, setuptools, Loading @@ -23,17 +22,13 @@ buildPythonPackage rec { hash = "sha256-WmprkHOgvlsOIg8H77P7fzEqxGnj6xaL7Df7urRkg3o="; }; patches = [ ./fix_test_generate.patch ]; build-system = [ setuptools ]; propagatedBuildInputs = [ blockdiag ]; # tests rely on nose doCheck = pythonOlder "3.12"; nativeCheckInputs = [ nose pytestCheckHook ]; nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "src/actdiag/tests/" ]; Loading pkgs/development/python-modules/actdiag/fix_test_generate.patch 0 → 100644 +22 −0 Original line number Diff line number Diff line diff --git a/src/actdiag/tests/test_generate_diagram.py b/src/actdiag/tests/test_generate_diagram.py index c5ee3d5..a74a151 100644 --- a/src/actdiag/tests/test_generate_diagram.py +++ b/src/actdiag/tests/test_generate_diagram.py @@ -16,16 +16,6 @@ import os from blockdiag.tests.test_generate_diagram import (get_diagram_files, - testcase_generator) + test_generate_with_separate) -import actdiag.command - -def test_generate(): - mainfunc = actdiag.command.main - basepath = os.path.dirname(__file__) - files = get_diagram_files(basepath) - options = [] - - for testcase in testcase_generator(basepath, mainfunc, files, options): - yield testcase Loading
pkgs/development/python-modules/actdiag/default.nix +3 −8 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ blockdiag, buildPythonPackage, fetchFromGitHub, nose, pytestCheckHook, pythonOlder, setuptools, Loading @@ -23,17 +22,13 @@ buildPythonPackage rec { hash = "sha256-WmprkHOgvlsOIg8H77P7fzEqxGnj6xaL7Df7urRkg3o="; }; patches = [ ./fix_test_generate.patch ]; build-system = [ setuptools ]; propagatedBuildInputs = [ blockdiag ]; # tests rely on nose doCheck = pythonOlder "3.12"; nativeCheckInputs = [ nose pytestCheckHook ]; nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "src/actdiag/tests/" ]; Loading
pkgs/development/python-modules/actdiag/fix_test_generate.patch 0 → 100644 +22 −0 Original line number Diff line number Diff line diff --git a/src/actdiag/tests/test_generate_diagram.py b/src/actdiag/tests/test_generate_diagram.py index c5ee3d5..a74a151 100644 --- a/src/actdiag/tests/test_generate_diagram.py +++ b/src/actdiag/tests/test_generate_diagram.py @@ -16,16 +16,6 @@ import os from blockdiag.tests.test_generate_diagram import (get_diagram_files, - testcase_generator) + test_generate_with_separate) -import actdiag.command - -def test_generate(): - mainfunc = actdiag.command.main - basepath = os.path.dirname(__file__) - files = get_diagram_files(basepath) - options = [] - - for testcase in testcase_generator(basepath, mainfunc, files, options): - yield testcase