diff --git a/tests/textcode/copyright_no_year.expected.json b/tests/textcode/copyright_no_year.expected.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/tests/textcode/copyright_no_year.expected.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/tests/textcode/copyright_no_year.txt b/tests/textcode/copyright_no_year.txt new file mode 100644 index 0000000000..705bee2c0f --- /dev/null +++ b/tests/textcode/copyright_no_year.txt @@ -0,0 +1 @@ +Copyright The OpenTelemetry Authors diff --git a/tests/textcode/test_strings.py b/tests/textcode/test_strings.py index e174249e99..88d683eb69 100644 --- a/tests/textcode/test_strings.py +++ b/tests/textcode/test_strings.py @@ -180,3 +180,11 @@ def test_strings_with_lf(self): test_file = 'strings/with-lf/strings.exe' expected_file = 'strings/with-lf/strings.exe.results' self.check_file_strings(test_file, expected_file, regen=REGEN_TEST_FIXTURES) + + class TestStrings(FileBasedTesting): + + def test_copyright_without_year(self): + self.check_file_strings( + test_file='copyright_no_year.txt', + expected_file='copyright_no_year.expected.json' + ) \ No newline at end of file