You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
562 B

2 years ago
2 years ago
2 years ago
2 years ago
  1. from model_mommy import mommy
  2. def make_comment(doc, user):
  3. return mommy.make("Comment", example=doc, user=user)
  4. def make_doc(project):
  5. return mommy.make("Example", text="example", project=project)
  6. def make_image(project, filepath):
  7. return mommy.make("Example", filename=filepath, project=project)
  8. def make_example_state(example, user):
  9. return mommy.make("ExampleState", example=example, confirmed_by=user)
  10. def make_assignment(project, example, user):
  11. return mommy.make("Assignment", project=project, example=example, assignee=user)