Commit graph

13 commits

Author SHA1 Message Date
Bryan Bennett
2dfdd127bd
Make test messages consts rather than class state 2022-04-03 20:45:35 -04:00
Eric Wolf
a18e37535d
Fix tests
- `renewed_message` is now the same for `use nix` and `use flake`.
- we now expect `shellHook` to run, whether the environment is cached
  or not
2022-04-03 20:45:23 -04:00
Jörg Thalheim
01b5bf6eb6 test: remove nix flake check 2021-11-15 14:35:49 +01:00
ryneeverett
5c65694ea8 test.py: isolate assertions; DRY data generation
The majority of the test code is just creating the stdout data against
which to make assertions. Increasing the test cases will be more
manageable if the assertions are separate from this data generation.

It is also a generally preferred style to have one assertion per test,
because this way all assertions run even if others fail and each test
only fails for one reason. It also facilitates better test documentation
and adding additional tests without increasing complexity.
2021-06-11 15:13:57 -04:00
ryneeverett
6e68ea7235 flakes: Don't run shellHook on cached dev shells
This makes the behavior of `use flake` consistent with that of `use
nix`.

Resolve #90.
2021-06-08 20:51:07 -04:00
Jörg Thalheim
763d572df3
properly register flake source gc root
Before it just add a gc root with to a symlink to the current directory.
2021-02-11 08:59:09 +01:00
Jörg Thalheim
4aad17c4a1
tests: extend use_flake tests 2020-12-25 18:30:52 +01:00
Jörg Thalheim
47da3c88c7
tests: fix flake feature check 2020-12-25 18:30:52 +01:00
Jörg Thalheim
8b067fb376
extend ci to nixUnstable/macOS 2020-08-10 22:51:51 +01:00
Jörg Thalheim
9e887c3201
add tests for flakes 2020-08-09 22:51:10 +01:00
Jörg Thalheim
7a5efc4080
make flake8 happy 2020-06-30 08:47:24 +01:00
Jörg Thalheim
9b5b553521
improve tests 2020-04-11 22:12:03 +01:00
Jörg Thalheim
862b772839
add tests 2020-04-01 16:12:48 +01:00