mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
chore: add test
This commit is contained in:
parent
a270ff13a4
commit
20e9a90099
3 changed files with 25 additions and 0 deletions
21
tests/modules/programs/todoman/config.nix
Normal file
21
tests/modules/programs/todoman/config.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
programs.todoman = {
|
||||||
|
enable = true;
|
||||||
|
glob = "*/*";
|
||||||
|
extraConfig = ''
|
||||||
|
date_format = "%d.%m.%Y"
|
||||||
|
default_list = "test"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
accounts.calendar.basePath = "base/path/calendar";
|
||||||
|
|
||||||
|
test.stubs = { todoman = { }; };
|
||||||
|
|
||||||
|
nmt.script = ''
|
||||||
|
configFile=home-files/.config/todoman/config.py
|
||||||
|
assertFileExists $configFile
|
||||||
|
assertFileContent $configFile ${./todoman-config-expected}
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
1
tests/modules/programs/todoman/default.nix
Normal file
1
tests/modules/programs/todoman/default.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{ todoman-config = ./config.nix; }
|
3
tests/modules/programs/todoman/todoman-config-expected
Normal file
3
tests/modules/programs/todoman/todoman-config-expected
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
path = "/home/hm-user/base/path/calendar/*/*"
|
||||||
|
date_format = "%d.%m.%Y"
|
||||||
|
default_list = "test"
|
Loading…
Reference in a new issue