forked from ara818/django-autocompleter
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test to make sure management command calling works at the most ba…
…sic level
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
*.pyc | ||
.idea/ | ||
!.gitignore | ||
.vscode/ | ||
.DS_Store | ||
|
||
!.gitignore |
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,14 @@ | ||
from django.core.management import call_command | ||
from django.test import TestCase | ||
|
||
|
||
class ManagementCommandTestCase(TestCase): | ||
|
||
def test_autocompleter_init_calleable(self): | ||
""" | ||
Can call autocompleter_init without any error | ||
""" | ||
try: | ||
call_command("autocompleter_init") | ||
except Exception: | ||
self.fail("Calling autocompleter_init has raised an exception unexpectedly") |