Skip to content

Commit 4e55fe3

Browse files
committed
add more test code
1 parent e3933c4 commit 4e55fe3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

about_code_tool/tests/test_genabout.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ def test_get_dje_license_list_gen_license_with_dje_license_key_empty_license_tex
244244
gen_license = True
245245
dje_license_dict = {'Apache License 2.0': [u'apache-2.0', 'test context']}
246246
lic_output_list = gen.get_dje_license_list(gen_location, input_list, gen_license, dje_license_dict)
247+
for line in input_list:
248+
self.assertTrue(line['license_text_file'] == 'apache-2.0.LICENSE')
247249
self.assertTrue(expected_output_list == lic_output_list)
248250
self.assertFalse(gen.warnings, "No warnings should be returned.")
249251
self.assertFalse(gen.errors, "No errors should be returned.")
@@ -273,6 +275,8 @@ def test_get_dje_license_list_gen_license_with_dje_license_key_no_license_text_f
273275
gen_license = True
274276
dje_license_dict = {'Apache License 2.0': [u'apache-2.0', 'test context']}
275277
lic_output_list = gen.get_dje_license_list(gen_location, input_list, gen_license, dje_license_dict)
278+
for line in input_list:
279+
self.assertTrue(line['license_text_file'] == 'apache-2.0.LICENSE')
276280
self.assertTrue(expected_output_list == lic_output_list)
277281
self.assertFalse(gen.warnings, "No warnings should be returned.")
278282
self.assertFalse(gen.errors, "No errors should be returned.")

0 commit comments

Comments
 (0)