From 638bc9c4ab18baeabbbbd515fc14ef2b55db155b Mon Sep 17 00:00:00 2001 From: Andrew Buss Date: Fri, 5 Jun 2015 06:39:00 -0700 Subject: [PATCH] fixtures f8 f9 --- flashcards/test_fixtures/f8.py | 11 +++++++++++ flashcards/test_fixtures/f9.py | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 flashcards/test_fixtures/f8.py create mode 100644 flashcards/test_fixtures/f9.py diff --git a/flashcards/test_fixtures/f8.py b/flashcards/test_fixtures/f8.py new file mode 100644 index 0000000..499b47c --- /dev/null +++ b/flashcards/test_fixtures/f8.py @@ -0,0 +1,11 @@ +from flashcards.models import * + + +def apply(): + u = User.objects.get(email='userx@flashy.cards') + y = User.objects.get(email='usery@flashy.cards') + s = Section.objects.get(department_abbreviation='TEST', course_num='101') + s.enroll(u) + s.enroll(y) + Flashcard.push(author=u, section=s, text='The rain in Spain stays mainly in the plain', mask=FlashcardMask([])) + Flashcard.push(author=u, section=s, text='Hide me too', mask=FlashcardMask([])) diff --git a/flashcards/test_fixtures/f9.py b/flashcards/test_fixtures/f9.py new file mode 100644 index 0000000..70d712d --- /dev/null +++ b/flashcards/test_fixtures/f9.py @@ -0,0 +1,10 @@ +from flashcards.models import * + + +def apply(): + u = User.objects.get(email='userx@flashy.cards') + y = User.objects.get(email='usery@flashy.cards') + s = Section.objects.get(department_abbreviation='TEST', course_num='101') + s.enroll(u) + s.enroll(y) + Flashcard.push(author=y, section=s, text='Feed me', mask=FlashcardMask([])) -- 1.9.1