Skip to content

Commit

Permalink
Merge pull request #4893 from VladimirSlavik/master-fix-unit-tests-su…
Browse files Browse the repository at this point in the history
…mmer

Fix unit tests for python 3.12
  • Loading branch information
VladimirSlavik committed Jul 11, 2023
2 parents 76386b9 + 4539254 commit c7d8686
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 c7d8686

Please sign in to comment.