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

Method _create

tests/test_using.py:448–451  ·  view source on GitHub ↗
(cls, model_class, *args, **kwargs)

Source from the content-addressed store, hash-verified

446
447 @classmethod
448 def _create(cls, model_class, *args, **kwargs):
449 obj = model_class.create(**kwargs)
450 obj.properly_created = True
451 return obj
452
453 obj = TestModelFactory.create(one=1)
454 self.assertEqual(1, obj.one)

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected