Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes unique error with accounts tests
- Loading branch information
Showing
2 changed files
with
24 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from itertools import cycle | ||
|
||
from model_mommy.recipe import Recipe | ||
|
||
from .models import Post | ||
|
||
|
||
POST_TITLES = [ | ||
'Bacon ipsum dolor amet', | ||
'Turducken ham kevin', | ||
'Beef shoulder meatloaf boudin', | ||
'Ribeye kielbasa fatback shankle', | ||
] | ||
|
||
unique_post = Recipe( | ||
Post, | ||
title=cycle(POST_TITLES), | ||
) |