You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,3 +68,4 @@ This program obviously is not perfect, hence there are some limitations that sho
68
68
* Comments done with `/* */` aren't stored for re-attachment as they are often inside clauses
69
69
70
70
## Credits
71
+
* The test configuration `./tests/example_configurations/pms_example_config.nix` comes from (here)[https://perfectmediaserver.com/02-tech-stack/nixos/configuration.nix/]
assert"{3: [('# Include the results of the hardware scan.\\n', False)], 10: [('# Define your hostname.\\n', False)], 20: [('#audio', True)], 35: [('# Steam\\n', False)]}".replace("\"", '"') ==str(comment_handler.get_comments_for_attaching())
20
+
21
+
deftest_pms_example_config():
22
+
"""
23
+
Checks if all comments are collected correctly in pms_example_config.nix configuration
assert"{6: [('# Edit this configuration file to define what should be installed on', True), ('# your system. Help is available in the configuration.nix(5) man page', True), ('# and in the NixOS manual (accessible by running `nixos-help`).', True)], 11: [('# Include the results of the hardware scan.\\n', False)], 16: [('# Use the systemd-boot EFI boot loader.', True)], 22: [('#boot.zfs.extraPools = [ \"zfstest\" ];', True)], 57: [('# badblocks\\n', False)], 97: [('#defaultSession = \"xfce+bspwm\";', True)], 110: [('# make shares visible for windows 10 clients\\n', False)]}".replace("\"", '"') ==str(comment_handler.get_comments_for_attaching())
0 commit comments