-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
eb1be3d
commit 5554d2b
Showing
4 changed files
with
25 additions
and
7 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
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
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,10 +1,12 @@ | ||
from factory import fuzzy | ||
from factory.declarations import SubFactory | ||
|
||
from testutils.factories import AutoRegisterModelFactory, ProgramFactory | ||
from country_workspace.models import KoboAsset | ||
from testutils.factories import AutoRegisterModelFactory | ||
|
||
|
||
class KoboAssetFactory(AutoRegisterModelFactory): | ||
uid = fuzzy.FuzzyText() | ||
name = fuzzy.FuzzyText() | ||
program = SubFactory(ProgramFactory) | ||
|
||
class Meta: | ||
model = KoboAsset |