Skip to content

Commit cd3475b

Browse files
committed
Add test for copyright detection without year
1 parent 022ddc8 commit cd3475b

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Copyright The OpenTelemetry Authors

tests/textcode/test_strings.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,11 @@ def test_strings_with_lf(self):
180180
test_file = 'strings/with-lf/strings.exe'
181181
expected_file = 'strings/with-lf/strings.exe.results'
182182
self.check_file_strings(test_file, expected_file, regen=REGEN_TEST_FIXTURES)
183+
184+
class TestStrings(FileBasedTesting):
185+
186+
def test_copyright_without_year(self):
187+
self.check_file_strings(
188+
test_file='copyright_no_year.txt',
189+
expected_file='copyright_no_year.expected.json'
190+
)

0 commit comments

Comments
 (0)