Open
Description
Some tests would benefit from a refactor. I'm mostly thinking about the logic contained in the _get_or_create
private method, which is not directly tested but via its callers.
One solution here would be to create a base class with the behaviours we want to test and then derive multiple classes with the different inputs (bucket, collection and record).