Skip to content

Conversation

@hroncok
Copy link
Contributor

@hroncok hroncok commented Jul 9, 2023

    E               AttributeError: 'called_once_with' is not a valid assertion. Use a spec for the mock if 'called_once_with' is meant to be an attribute.. Did you mean: 'assert_called_once_with'?

    FAILED tests/TestBackend.py::test__onSocketStateChanged_listening - Attribute...
    FAILED tests/TestBackend.py::test_onSocketStateChanged_connected - AttributeE...
    FAILED tests/Jobs/TestJob.py::test_start - AttributeError: 'called_once_with'...
    FAILED tests/Jobs/TestJob.py::test_cancel - AttributeError: 'called_once_with...

hroncok added 2 commits July 9, 2023 12:10
    E               AttributeError: 'called_once_with' is not a valid assertion. Use a spec for the mock if 'called_once_with' is meant to be an attribute.. Did you mean: 'assert_called_once_with'?

    FAILED tests/TestBackend.py::test__onSocketStateChanged_listening - Attribute...
    FAILED tests/TestBackend.py::test_onSocketStateChanged_connected - AttributeE...
    FAILED tests/Jobs/TestJob.py::test_start - AttributeError: 'called_once_with'...
    FAILED tests/Jobs/TestJob.py::test_cancel - AttributeError: 'called_once_with...
@github-actions github-actions bot added the PR: Community Contribution 👑 Community Contribution PR's label Jul 9, 2023
@hroncok
Copy link
Contributor Author

hroncok commented Jul 9, 2023

This was needed in Fedora to update to Python 3.12 (together with using https://pypi.org/project/zombie-imp/ to workaround #765). Unfortunately, one of the asserts actually failed, hence I needed to comment it out. I don't think this ever asserted anything, so perhaps it was a wrong assert... ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Community Contribution 👑 Community Contribution PR's

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant