Skip to content

Commit e4a41c8

Browse files
committed
Fix line numbers tests with current file number
1 parent e48d772 commit e4a41c8

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
@@ -470,8 +470,10 @@ def test_cli_op_line_numbers(self):
470470
assert op_order[2] == second_pseudo_hash
471471

472472
# And that they have the expected line numbers
473-
assert state.op_line_numbers_to_hash.get((first_pseudo_call_line,)) == first_pseudo_hash
474-
assert state.op_line_numbers_to_hash.get((second_pseudo_call_line,)) == second_pseudo_hash
473+
assert state.op_line_numbers_to_hash.get((0, first_pseudo_call_line)) \
474+
== first_pseudo_hash
475+
assert state.op_line_numbers_to_hash.get((0, second_pseudo_call_line)) \
476+
== second_pseudo_hash
475477

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

0 commit comments

Comments
 (0)