Skip to content

Commit

Permalink
test de la commande de chargement
Browse files Browse the repository at this point in the history
  • Loading branch information
firm1 committed Apr 23, 2015
1 parent f484f6a commit ddcee27
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions zds/utils/management/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from zds.article.models import Article, Validation as AValidation
from zds.tutorial.models import Tutorial, Validation as TValidation
from zds.forum.models import Forum, Topic, Category as FCategory
from zds.utils.models import Tag, Category as TCategory, CategorySubCategory, SubCategory

from zds.utils.models import Tag, Category as TCategory, CategorySubCategory, SubCategory, \
HelpWriting
from zds.member.factories import ProfileFactory


Expand All @@ -33,6 +33,13 @@ def test_load_fixtures(self):
self.assertTrue(CategorySubCategory.objects.count() > 0)
self.assertTrue(SubCategory.objects.count() > 0)

def test_load_factory_data(self):
args = ["fixtures/advanced/aide_tuto_media.yaml"]
opts = {}
call_command('load_factory_data', *args, **opts)

self.assertTrue(HelpWriting.objects.count() > 0)

def test_profiler(self):
result = self.client.get("/?prof", follow=True)
self.assertEqual(result.status_code, 200)
Expand Down

0 comments on commit ddcee27

Please sign in to comment.