Skip to content

Commit b5317d9

Browse files
committed
Fixed the failing test
1 parent 30c1488 commit b5317d9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

about_code_tool/tests/test_about.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def test_notice_text_returns_empty_string_when_ref_file_doesnt_exist(self):
580580
self.assertEqual(notice_text, expected)
581581

582582
def test_get_dje_license_name(self):
583-
expected = 'apache-2.0'
583+
expected = 'Apache License 2.0'
584584
about_file = about.AboutFile(join(TESTDATA_PATH, 'parser_tests/about_resource_field_present.ABOUT'))
585585
output = about_file.get_dje_license_name()
586586
self.assertTrue(output == expected)

about_code_tool/tests/testdata/parser_tests/about_file_empty_value_for_dje_license_license_text_file.ABOUT

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ name: Apache HTTP Server
22
version: 2.4.3
33

44
dje_license:
5-
license_text_file:
5+
license_text_file:
6+
dje_license_name:

about_code_tool/tests/testdata/parser_tests/about_resource_field_present.ABOUT

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ license_text_file: httpd.LICENSE
66
copyright: Copyright 2012 The Apache Software Foundation.
77
notice_file: httpd.NOTICE
88
about_resource: about_resource.c
9-
dje_license: apache-2.0
9+
dje_license: apache-2.0
10+
dje_license_name: Apache License 2.0

0 commit comments

Comments
 (0)