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

Method test_create

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

Source from the content-addressed store, hash-verified

614 self.assertEqual(test_object1.two, 'two1')
615
616 def test_create(self):
617 class TestModelFactory(FakeModelFactory):
618 class Meta:
619 model = TestModel
620
621 one = 'one'
622
623 test_model = TestModelFactory.create()
624 self.assertEqual(test_model.one, 'one')
625 self.assertTrue(test_model.id)
626
627 def test_create_batch(self):
628 class TestModelFactory(FakeModelFactory):

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected