Skip to content

Commit 7a3ea91

Browse files
committed
Added credit for yasu config and fixed line numbers in test case accordingly
1 parent a25ce70 commit 7a3ea91

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ This program obviously is not perfect, hence there are some limitations that sho
6969

7070
## Credits
7171
* The test configuration `./tests/example_configurations/pms_example_config.nix` comes from [here](https://perfectmediaserver.com/02-tech-stack/nixos/configuration.nix/)
72+
* The test configuration `./tests/example_configurations/yasu_example_config.nix` comes from [here](https://discourse.nixos.org/t/configuration-nix-home-nix-examples/8185)

tests/example_configurations/yasu_example_config.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* credit: https://discourse.nixos.org/t/configuration-nix-home-nix-examples/8185
2+
Unmodified */
3+
14
{ config, pkgs, ... }:
25
{
36
imports =

tests/test_comment_collecting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_yasu_example_config():
1616
"""
1717

1818
comment_handler = CommentHandling(Path("./tests/example_configurations/yasu_example_config.nix"))
19-
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())
19+
assert "{6: [('# Include the results of the hardware scan.\\n', False)], 13: [('# Define your hostname.\\n', False)], 23: [('#audio', True)], 38: [('# Steam\\n', False)]}".replace("\"", '"') == str(comment_handler.get_comments_for_attaching())
2020

2121
def test_pms_example_config():
2222
"""

0 commit comments

Comments
 (0)