Skip to content

Commit

Permalink
Use correct call assert method in flapak test
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirSlavik committed Jul 10, 2023
1 parent b5a3f7c commit 4539254
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,12 @@ def test_replace_remote(self, remote_cls, installation_cls, transaction_cls,
flatpak.replace_installed_refs_remote("cylon_officer")

# test that every file is read and written
open_mock.has_calls([
open_mock.assert_has_calls([
call("/path/app/org.test/x86_64/stable/active/deploy", "rb"),
call("/path/app/org.test/x86_64/stable/active/deploy", "wb"),
call("/path/runtime/org.run/x86_64/stable/active/deploy", "rb"),
call("/path/runtime/org.run/x86_64/stable/active/deploy", "wb"),
])
], any_order=True)


class OperationMock(object):
Expand Down

0 comments on commit 4539254

Please sign in to comment.