Skip to content

Commit

Permalink
Don't need the CommandError test anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Aug 9, 2016
1 parent 5cca77c commit 866326d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions bakery/tests/__init__.py
Expand Up @@ -14,7 +14,6 @@
from django.http import HttpResponse
from django.core.management import call_command
from django.test import TestCase, RequestFactory
from django.core.management.base import CommandError
from django.core.exceptions import ImproperlyConfigured
from django.contrib.contenttypes.models import ContentType

Expand Down Expand Up @@ -322,14 +321,6 @@ def test_build_cmd(self):
self.assertTrue(os.path.exists(robots_path))
favicon_path = os.path.join(settings.BUILD_DIR, 'favicon.ico')
self.assertTrue(os.path.exists(favicon_path))
# If the view you attempt to build does not exist,
# the build command should throw a CommandError.
self.assertRaises(
CommandError,
call_command,
'build',
'FooView',
)

def test_unbuild_cmd(self):
call_command("unbuild")
Expand Down

0 comments on commit 866326d

Please sign in to comment.