chore: add test
This commit is contained in:
parent
573331c4c8
commit
e58ae5524c
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