Commit 638bc9c4ab18baeabbbbd515fc14ef2b55db155b
1 parent
0e258c1298
Exists in
master
fixtures f8 f9
Showing 2 changed files with 21 additions and 0 deletions Side-by-side Diff
flashcards/test_fixtures/f8.py
View file @
638bc9c
1 | +from flashcards.models import * | |
2 | + | |
3 | + | |
4 | +def apply(): | |
5 | + u = User.objects.get(email='userx@flashy.cards') | |
6 | + y = User.objects.get(email='usery@flashy.cards') | |
7 | + s = Section.objects.get(department_abbreviation='TEST', course_num='101') | |
8 | + s.enroll(u) | |
9 | + s.enroll(y) | |
10 | + Flashcard.push(author=u, section=s, text='The rain in Spain stays mainly in the plain', mask=FlashcardMask([])) | |
11 | + Flashcard.push(author=u, section=s, text='Hide me too', mask=FlashcardMask([])) |
flashcards/test_fixtures/f9.py
View file @
638bc9c
1 | +from flashcards.models import * | |
2 | + | |
3 | + | |
4 | +def apply(): | |
5 | + u = User.objects.get(email='userx@flashy.cards') | |
6 | + y = User.objects.get(email='usery@flashy.cards') | |
7 | + s = Section.objects.get(department_abbreviation='TEST', course_num='101') | |
8 | + s.enroll(u) | |
9 | + s.enroll(y) | |
10 | + Flashcard.push(author=y, section=s, text='Feed me', mask=FlashcardMask([])) |