Closed rikigigi closed 11 months ago
Attention: 11 lines
in your changes are missing coverage. Please review.
Comparison is base (
31f85c7
) 90.82% compared to head (303685a
) 90.72%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Fixes https://github.com/aiidateam/plumpy/issues/273
We implement the persistence of ProcessListener by deriving the class ProcessListener and EventHelper from persistence.Savable. The class EventHelper is moved to a new file because of a circular import with utils and persistence
There was a circular reference issue in the test listener that was storing a reference to the process inside it, making its serialization impossible. To fix the tests an ugly hack was used: storing the reference to the process outside the class in a global dict using id as keys. Some more ugly hacks are needed to check correctly the equality of two processes. We must ignore the fact that the instances if the listener are different.
We call del on dict items of the ProcessListener's global implemented in the test suite to clean the golbal variables
addressed issues in https://github.com/aiidateam/plumpy/pull/274