Skip to content

Commit f41c82c

Browse files
committed
edit some test cases
1 parent 3e4019a commit f41c82c

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

about_code_tool/tests/test_about.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,14 @@ def test_header_row_in_csv_output(self):
110110
'home_url,download_url,readme,readme_file,install,install_file,'
111111
'changelog,changelog_file,news,news_file,news_url,notes,notes_file,'
112112
'contact,owner,author,author_file,copyright,copyright_file,'
113-
'notice,notice_file,notice_url,license_text,license_text_file,'
114-
'license_url,license_spdx,redistribute,attribute,track_changes,'
115-
'vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,'
116-
'checksum_sha1,checksum_md5,checksum_sha256,dje_component,'
117-
'dje_license,dje_organization,dje_license_name,scm_branch,'
118-
'scm_repository,signature_gpg_file,redistribute_sources,about_format,'
119-
'usage,scm_path,scm_tool,scm_rev,scm_tag,organization,'
113+
'notice_file,notice_url,license_text_file,license_url,license_spdx,'
114+
'redistribute,attribute,track_changes,vcs_tool,vcs_repository,'
115+
'vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_sha1,checksum_md5,'
116+
'checksum_sha256,dje_component,dje_license,dje_organization,'
117+
'dje_license_name,scm_branch,scm_repository,signature_gpg_file,'
118+
'redistribute_sources,about_format,usage,'
119+
'license_text,notice,' # These two are not supported and thus treat as custom keys
120+
'scm_path,scm_tool,scm_rev,scm_tag,organization,'
120121
'warnings,errors')
121122

122123
test_file = 'about_code_tool/tests/testdata/basic'
@@ -682,6 +683,9 @@ def test_get_custom_field_keys(self):
682683
result = about_file.get_custom_field_keys()
683684
expected = ['scm_branch', 'scm_repository', 'signature_gpg_file',
684685
'redistribute_sources', 'about_format', 'usage',
686+
# These two keys are removed from the spec and therefore
687+
# become a custom keys
688+
'license_text', 'notice',
685689
'scm_path', 'scm_tool', 'scm_rev', 'scm_tag',
686690
'organization']
687691
self.assertEqual(result, expected)

0 commit comments

Comments
 (0)