Tests: reconfigure pytest test folder after moving it into clan_cli

This commit is contained in:
Johannes Kirschbauer
2025-03-08 16:10:55 +09:00
parent 5273304915
commit e9846d6cb9
3 changed files with 4 additions and 4 deletions

View File

@@ -30,7 +30,7 @@
# this disables dynamic dependency loading in clan-cli
export CLAN_NO_DYNAMIC_DEPS=1
nix develop "$ROOT#clan-cli" -c bash -c "TMPDIR=/tmp python -m pytest -m impure ./tests $@"
nix develop "$ROOT#clan-cli" -c bash -c "TMPDIR=/tmp python -m pytest -m impure ./clan_cli/tests $@"
'';
};
}

View File

@@ -118,7 +118,7 @@ pythonRuntime.pkgs.buildPythonApplication {
echo "STARTING ..."
export WEBVIEW_LIB_DIR="${webview-lib}/lib"
export NIX_STATE_DIR=$TMPDIR/nix IN_NIX_SANDBOX=1
python -m pytest -s -m "not impure" ./tests
python -m pytest -s -m "not impure" ./clan_cli/tests
touch $out
'';
};

View File

@@ -156,7 +156,7 @@ pythonRuntime.pkgs.buildPythonApplication {
# limit build cores to 16
jobs="$((NIX_BUILD_CORES>16 ? 16 : NIX_BUILD_CORES))"
python -m pytest -m "not impure and not with_core" -n $jobs ./tests
python -m pytest -m "not impure and not with_core" -n $jobs ./clan_cli/tests
touch $out
'';
}
@@ -209,7 +209,7 @@ pythonRuntime.pkgs.buildPythonApplication {
# limit build cores to 16
jobs="$((NIX_BUILD_CORES>16 ? 16 : NIX_BUILD_CORES))"
python -m pytest -m "not impure and with_core" ./tests -n $jobs
python -m pytest -m "not impure and with_core" ./clan_cli/tests -n $jobs
touch $out
'';
};