Closed nikolatzotchev closed 4 years ago
I think tests for the callbacks need to be implemented. As well as checking that they are called when the database is updated, and that no infinite recursion happens.
I think tests for the callbacks need to be implemented. As well as checking that they are called when the database is updated, and that no infinite recursion happens.
I'm not really sure how to test if there is no recursion happening.
I'm not really sure how to test if there is no recursion happening.
You can do the following:
@ammen99 I fixed the bug here, it is not a problem right?
It's fine I think.
Moved the methods to SQLDatabase, added the callbacks, probably not right but ilia can check. I don't now what kind of test I should write about this. The methods are already tested in the mock_database so no point in testing them, but maybe the callbacks?