(self)
| 39 | assert get_as_pymongo(model) == {"_id": model.id, "status": "new"} |
| 40 | |
| 41 | def test_set_enum(self): |
| 42 | ModelWithEnum.drop_collection() |
| 43 | ModelWithEnum(status=Status.NEW).save() |
| 44 | assert ModelWithEnum.objects(status=Status.NEW).count() == 1 |
| 45 | assert ModelWithEnum.objects.first().status == Status.NEW |
| 46 | |
| 47 | def test_set_by_value(self): |
| 48 | ModelWithEnum.drop_collection() |
nothing calls this directly
no test coverage detected