Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

sktm test_init.py check_pending #70

Open
dzickusrh opened this issue Jun 4, 2018 · 0 comments
Open

sktm test_init.py check_pending #70

dzickusrh opened this issue Jun 4, 2018 · 0 comments

Comments

@dzickusrh
Copy link
Contributor

dzickusrh commented Jun 4, 2018

In test_init.py::test_wait_for_pending_done has a check_pending Mock() call that sets a return value, which is unneeded as that fails with Exceptions.

It would also be nice to mimic that a little better.
Adding: self.watcher_obj.pj = [(1, 2, 3)]

makes it correctly hang. Is there an easy way to Mock removal of those 'pj' ids? Such that 60 seconds later, check_pending succeeds? (mocking turning sleep from 60 seconds to 1 second would be nice too).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant