Update jobs factory
@@ -3,6 +3,7 @@ from faker import Factory as FakerFactory
import factory
from db.models.jobs import Job
+from factories.factory_projects import ProjectFactory
from factories.factory_users import UserFactory
from factories.fixtures import job_spec_parsed_content
@@ -13,6 +14,7 @@ class JobFactory(factory.DjangoModelFactory):
config = job_spec_parsed_content.parsed_data
user = factory.SubFactory(UserFactory)
+ project = factory.SubFactory(ProjectFactory)
class Meta:
model = Job
