Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
test: enable tests on craft-parts package
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Jan 15, 2024
1 parent 8a90e0c commit 31af370
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion deps/craft-parts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,37 @@ pkgs.python3Packages.buildPythonPackage rec {
types-pyyaml
];

doCheck = false;
preCheck = ''
mkdir -p check-phase
export HOME=$(pwd)/check-phase
'';

nativeCheckInputs = with pkgs.python3Packages; [
hypothesis
pytest-check
pytest-mock
pytest-subprocess
pytestCheckHook
requests-mock
] ++ (with pkgs; [
bashInteractive
git
squashfsTools
]);

disabledTestPaths = [
"tests/integration"
"tests/unit/packages"
"tests/unit/test_xattrs.py"
];

disabledTests = [
"test_get_build_packages_with_source_type"
"test_get_build_packages"
"test_mode"
"test_run_builtin_build"
"test_run_prime"
];

meta = {
description = "Software artifact parts builder from Canonical.";
Expand Down

0 comments on commit 31af370

Please sign in to comment.