Skip to content

Commit

Permalink
wip: disable a few more tests that dont work in the nix sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilTaken committed Oct 22, 2024
1 parent 11198f5 commit 62a7b78
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- run: nix build
- run: nix build -L
- run: nix flake check
21 changes: 18 additions & 3 deletions nix/batou.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ buildPythonPackage {
nativeCheckInputs = [
pytestCheckHook

py
mock
py
pytest-cov
pytest-instafail
pytest-timeout
Expand All @@ -60,12 +60,27 @@ buildPythonPackage {
PY_IGNORE_IMPORTMISMATCH = 1;

disabledTests = [
"test_runs_buildout_successfully"
"test_runs_buildout3_successfully"
# requires internet access
"test_manage__2_age"
"test_manage__reencrypt__1"

# requires access to /usr/bin/hdiutil
"test_dmg_extracts_archive_to_target_directory"

# cannot resolve hosts in sandbox
"test_address_netloc_attributes"
"test_address_resolves_listen_address"
];

disabledTestPaths = [
# requires internet access for download / pip install
"src/batou/lib/tests/test_appenv.py"
"src/batou/lib/tests/test_buildout.py"
"src/batou/lib/tests/test_download.py"
"src/batou/lib/tests/test_supervisor.py"

# bad interpreter `/usr/bin/env python3` in appenv.py
"src/batou/tests/test_endtoend.py"
];

pname = "batou";
Expand Down

0 comments on commit 62a7b78

Please sign in to comment.