@@ -62,7 +62,7 @@ def test_get_comment(yaml):
6262 from frigate .gen import get_comment
6363
6464 tree = yaml .load ("hello: world # this is the comment" )
65- assert get_comment (tree , "hello" ) == "This is the comment"
65+ assert get_comment (tree , "hello" ) == "this is the comment"
6666
6767 tree = yaml .load (
6868 """
@@ -71,7 +71,7 @@ def test_get_comment(yaml):
7171 # this is also not the comment
7272 """
7373 )
74- assert get_comment (tree , "hello" ) == "This is the comment"
74+ assert get_comment (tree , "hello" ) == "this is the comment"
7575
7676 tree = yaml .load (
7777 """
@@ -82,7 +82,7 @@ def test_get_comment(yaml):
8282 # this is also not the comment
8383 """
8484 )
85- assert get_comment (tree , "hello" ) == "This is the comment"
85+ assert get_comment (tree , "hello" ) == "this is the comment"
8686
8787 tree = yaml .load (
8888 """
@@ -94,7 +94,7 @@ def test_get_comment(yaml):
9494 # this is also not the comment
9595 """
9696 )
97- assert get_comment (tree , "hello" ) == "This is the comment"
97+ assert get_comment (tree , "hello" ) == "this is the comment"
9898
9999 tree = yaml .load (
100100 """
@@ -107,14 +107,17 @@ def test_get_comment(yaml):
107107 )
108108 assert get_comment (tree , "hello" ) == ""
109109
110+ tree = yaml .load ("hello: world # Use a `LoadBalancer`." )
111+ assert get_comment (tree , "hello" ) == "Use a `LoadBalancer`."
112+
110113
111114def test_clean_comment ():
112115 from frigate .gen import clean_comment
113116
114- assert clean_comment ("# hello world" ) == "Hello world"
115- assert clean_comment ("hello world" ) == "Hello world"
116- assert clean_comment ("## # ## ## hello world" ) == "Hello world"
117- assert clean_comment (" # hello world " ) == "Hello world"
117+ assert clean_comment ("# hello world" ) == "hello world"
118+ assert clean_comment ("hello world" ) == "hello world"
119+ assert clean_comment ("## # ## ## hello world" ) == "hello world"
120+ assert clean_comment (" # hello world " ) == "hello world"
118121
119122
120123def test_traversal (simple_chart , rich_chart ):
@@ -129,7 +132,7 @@ def test_traversal(simple_chart, rich_chart):
129132
130133 assert [
131134 "replicaCount" ,
132- "Number of nginx pod replicas to create" ,
135+ "number of nginx pod replicas to create" ,
133136 "1" ,
134137 ] in rich_output
135138
0 commit comments