-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
61 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
from pytest_factoryboy import register | ||
from tests.comments import factories as comment_factories | ||
from tests.ideas import factories as idea_fatories | ||
from tests.modules import factories as module_factories | ||
from tests.organisations import factories as organisation_factories | ||
from tests.projects import factories as project_factories | ||
from tests.rates import factories as rate_factories | ||
|
||
register(rate_factories.RateFactory) | ||
register(comment_factories.CommentFactory) | ||
register(organisation_factories.OrganisationFactory) | ||
register(project_factories.ProjectFactory) | ||
register(module_factories.ModuleFactory) | ||
register(idea_fatories.IdeaFactory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +0,0 @@ | ||
def add_phase_to_project(project, type): | ||
from euth.phases import models | ||
phase = models.Phase.objects.create( | ||
name='Phase name', | ||
description='lorem ipsum', | ||
type=type, | ||
module=project.module_set.first()) | ||
return phase | ||