Add request domain tests and factories

This commit is contained in:
richard-dds
2018-07-23 16:19:12 -04:00
parent 0400e2c864
commit fadbf1cfb1
4 changed files with 90 additions and 1 deletions

11
tests/factories.py Normal file
View File

@@ -0,0 +1,11 @@
import factory
from uuid import uuid4
from atst.models import Request, RequestStatusEvent
class RequestFactory(factory.Factory):
class Meta:
model = Request
id = factory.Sequence(lambda x: uuid4())