Commit graph

14 commits

Author SHA1 Message Date
Jörg Thalheim
ae4a4e8e7c make tests directory a proper python module 2023-11-29 08:14:14 +01:00
Andrew Marshall
92eb25521e Run tests with and without direnv’s strict_env
It seems unlikely that the “without” case will have any errors that the
“with” case doesn’t, but it’s still a common use case and easy enough to
parametrize.
2023-04-14 12:43:34 -04:00
Andrew Marshall
857bcd5c4f Remove unneeded shebangs from test files
The files are not executable, tests should only be run via `pytest`, and
some of them were incorrectly python2.
2023-04-14 12:43:34 -04:00
Andrew Marshall
6bbfbf5af5 Fix failing tests
In 988193f812 a new input was added to the
flake, and thus broke this test.
2023-04-14 11:31:44 -04:00
Jörg Thalheim
471aa92765 sort imports with ruff 2023-01-16 14:09:00 +01:00
Quentin Aristote
f9c23f2c67 test_gc: remove useless call to list 2022-10-21 15:06:50 +02:00
Quentin Aristote
05a6325387 test_gc: correct use of use_nix --arg 2022-10-21 15:03:02 +02:00
Quentin Aristote
db0e37ea65 test_gc: force change of env by passing arg to shell.nix 2022-10-21 12:18:32 +02:00
Quentin Aristote
391285f590 test_gc: remove debug prints 2022-10-20 16:29:24 +02:00
Quentin Aristote
edb067d0f4 test_gc: cleaning: pass --impure to use flake to force update of environment 2022-10-20 15:56:42 +02:00
Quentin Aristote
6c18aabfdd test_gc: check number of profiles and rc files in .direnv separately 2022-10-20 15:23:17 +02:00
Quentin Aristote
24d0af43fa test that .direnv/ gets cleaned 2022-10-20 13:07:45 +02:00
Jörg Thalheim
0530ef449f
test_gc: fix returncode check 2022-06-01 08:25:59 +02:00
Jörg Thalheim
748988f4b9
rewrite tests using pytest
this allows us to use fixtures that are more flexible
2022-06-01 08:20:43 +02:00