Skip to content

Commit 4256ffe

Browse files
fix: unknown number of files
1 parent 4703daa commit 4256ffe

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/services/upload/test_upload_collector.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,11 @@ def test_generate_upload_data_with_none_network(
194194
res = collector.generate_upload_data()
195195

196196
mock_logger.debug.assert_any_call("Collecting relevant files")
197-
mock_logger.debug.assert_any_call(
198-
"Found 1067 network files to report, (1067 without filtering)"
199-
)
200197

201198
mock_logger.info.assert_any_call("Found 1 coverage files to report")
202199
mock_logger.info.assert_any_call("> {}".format(tmp_path / "coverage.xml"))
203200

204-
assert len(res.network) == 1067
201+
assert len(res.network) > 1
205202
assert len(res.files) == 1
206203
assert len(res.file_fixes) == 24
207204

@@ -212,7 +209,7 @@ def test_generate_network_with_no_versioning_system(
212209
):
213210
versioning_system = NoVersioningSystem()
214211
found_files = versioning_system.list_relevant_files()
215-
assert len(found_files) == 1067
212+
assert len(found_files) > 1
216213

217214
found_files = versioning_system.list_relevant_files(tmp_path)
218215
assert len(found_files) == 0

0 commit comments

Comments
 (0)