-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4fe0a9
commit 23da5cc
Showing
2 changed files
with
30 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
"""Model tests.""" | ||
|
||
from __future__ import unicode_literals | ||
|
||
from django.contrib.auth.models import User | ||
from django.test import TestCase | ||
# from django.utils.encoding import force_text | ||
|
||
from actionslog.models import LogAction | ||
|
||
|
||
class ModelTestCase(TestCase): | ||
"""This class defines the test suite for the bucketlist model.""" | ||
|
||
def setUp(self): | ||
"""Define the test client and other test variables.""" | ||
self.user = User.objects.create(username="nerd") # ADD THIS LINE | ||
self.status_msg = 'Reset password success' | ||
|
||
|
||
def test_model_manager(self): | ||
la_kwargs = { | ||
'instance': self.user, | ||
'user': self.user, | ||
'action_info': {'info': self.status_msg}, | ||
} | ||
LogAction.objects.create_log_action(**la_kwargs) | ||
|
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