Skip to content

Commit c7e80d0

Browse files
committed
Fix the test for "test_update_about_resource_no_about_file_field_exist"
1 parent ea8e89a commit c7e80d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

about_code_tool/tests/test_genabout.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,10 +718,11 @@ def test_update_about_resource_no_about_file_field_exist(self):
718718
gen = genabout.GenAbout()
719719
test_fields = {'about_resource': 'test.c',
720720
'about_file': '/tmp/test.c'}
721+
expected_fields = {'about_resource': 'test.c',
722+
'about_file': '/tmp/test.c'}
721723
about_file_exist = False
722724
gen.update_about_resource(test_fields, about_file_exist)
723-
# FIXME: this will always be true: the test is incorrect
724-
self.assertTrue(test_fields == test_fields, 'The dict should not be changed.')
725+
self.assertTrue(test_fields == expected_fields, 'The dict should not be changed.')
725726

726727
def test_update_about_resource_no_about_file_no_field_isFile(self):
727728
gen = genabout.GenAbout()

0 commit comments

Comments
 (0)