Skip to content

Commit 9301b9b

Browse files
committed
Fix line numbers tests with current file number
1 parent efacba8 commit 9301b9b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_api/test_api_operations.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,10 @@ def test_cli_op_line_numbers(self):
466466
assert op_order[2] == second_context_hash
467467

468468
# And that they have the expected line numbers
469-
assert state.op_line_numbers_to_hash.get((first_context_call_line,)) == first_context_hash
470-
assert state.op_line_numbers_to_hash.get((second_context_call_line,)) == second_context_hash
469+
assert state.op_line_numbers_to_hash.get((0, first_context_call_line)) \
470+
== first_context_hash
471+
assert state.op_line_numbers_to_hash.get((0, second_context_call_line)) \
472+
== second_context_hash
471473

472474
# Ensure somehost has two ops and anotherhost only has the one
473475
assert len(state.ops[inventory.get_host('somehost')]) == 2

0 commit comments

Comments
 (0)