MCPcopy Create free account
hub / github.com/FactoryBoy/factory_boy / create

Method create

tests/test_using.py:61–64  ·  view source on GitHub ↗
(cls, **kwargs)

Source from the content-addressed store, hash-verified

59class FakeModel:
60 @classmethod
61 def create(cls, **kwargs):
62 instance = cls(**kwargs)
63 instance.id = 1
64 return instance
65
66 class FakeModelManager:
67 def get_or_create(self, **kwargs):

Callers 15

get_or_createMethod · 0.45
createMethod · 0.45
_createMethod · 0.45
test_createMethod · 0.45
_createMethod · 0.45
test_custom_createMethod · 0.45
test_createMethod · 0.45
_createMethod · 0.45
test_createMethod · 0.45
get_or_createMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected