Skip to content

Commit 1f0f2d7

Browse files
committed
Fixed #221
Fixed the "test_extract_deep_zip"
1 parent 3b3bd59 commit 1f0f2d7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

about_code_tool/tests/test_genattrib.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_genattrib_zip_with_filter(self):
141141
# note: this contains an about_files subdir that is the root of all ABOUT files in the "project"
142142
about_dir = 'about_code_tool/tests/testdata/genattrib/about_files.zip'
143143
generated_attrib = get_temp_file('generated.html')
144-
# note: all the about_fioles columns are paths starting with /about_files
144+
# note: all the about_files columns are paths starting with /about_files
145145
filter_csv = 'about_code_tool/tests/testdata/genattrib/project_filter.csv'
146146
args = [about_dir, generated_attrib, filter_csv]
147147
options = None
@@ -166,8 +166,11 @@ def test_extract_deep_zip(self):
166166
test_zip = 'about_code_tool/tests/testdata/longpath.zip'
167167
extracted = genattrib.extract_zip(test_zip)
168168
unc_extracted = about.add_unc(extracted)
169+
all_files = []
169170
for root, dirs, files in os.walk(unc_extracted):
170-
self.assertTrue('non-supported_date_format.ABOUT' in files)
171+
all_files.extend(files)
172+
self.assertTrue('non-supported_date_format.ABOUT' in all_files)
173+
171174

172175
def genattrib_command_tester(args, options):
173176
parser = genattrib.get_parser()

0 commit comments

Comments
 (0)