Skip to content

Commit 08361eb

Browse files
committed
mapreduce| Fixes up tests after upstream changes
1 parent b4f8d2d commit 08361eb

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

tests/test_check_parallel.py

+21-6
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,17 @@ def test_worker_check_single_file_uninitialised(self):
103103
def test_worker_check_single_file_no_checkers(self):
104104
linter = PyLinter(reporter=Reporter())
105105
worker_initialize(linter=linter)
106-
(name, _, _, msgs, stats, msg_status) = worker_check_single_file(
107-
_gen_file_data()
108-
)
106+
107+
(
108+
_, # proc-id
109+
name,
110+
_, # file_path
111+
_, # base_name
112+
msgs,
113+
stats,
114+
msg_status,
115+
_, # mapreduce_data
116+
) = worker_check_single_file(_gen_file_data())
109117
assert name == "--test-file_data-name-0--"
110118
assert [] == msgs
111119
no_errors_status = 0
@@ -140,9 +148,16 @@ def test_worker_check_sequential_checker(self):
140148
# Add the only checker we care about in this test
141149
linter.register_checker(SequentialTestChecker(linter))
142150

143-
(name, _, _, msgs, stats, msg_status) = worker_check_single_file(
144-
_gen_file_data()
145-
)
151+
(
152+
_, # proc-id
153+
name,
154+
_, # file_path
155+
_, # base_name
156+
msgs,
157+
stats,
158+
msg_status,
159+
_, # mapreduce_data
160+
) = worker_check_single_file(_gen_file_data())
146161

147162
# Ensure we return the same data as the single_file_no_checkers test
148163
assert name == "--test-file_data-name-0--"

0 commit comments

Comments
 (0)