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

Method test_create

tests/test_using.py:145–148  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

143 self.assertEqual(obj.four, None)
144
145 def test_create(self):
146 obj = factory.create(FakeModel, foo='bar')
147 self.assertEqual(obj.id, None)
148 self.assertEqual(obj.foo, 'bar')
149
150 @unittest.skipIf(SKIP_DJANGO, "django tests disabled.")
151 def test_create_custom_base(self):

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected