Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Commits
0f781328
Commit
0f781328
authored
7 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
unit tests for contact_attempt to string methods
parent
7b3f97a2
No related branches found
No related tags found
1 merge request
!100
Test coverage unit tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
smash/web/tests/models/test_contact_attempt.py
+17
-0
17 additions, 0 deletions
smash/web/tests/models/test_contact_attempt.py
with
17 additions
and
0 deletions
smash/web/tests/models/test_contact_attempt.py
0 → 100644
+
17
−
0
View file @
0f781328
import
logging
from
django.test
import
TestCase
from
web.tests.functions
import
create_study_subject
from
web.models
import
ContactAttempt
from
web.tests
import
create_worker
logger
=
logging
.
getLogger
(
__name__
)
class
ContactAttemptTests
(
TestCase
):
def
test_str
(
self
):
contact_attempt
=
ContactAttempt
(
worker
=
create_worker
(),
subject
=
create_study_subject
())
self
.
assertIsNotNone
(
str
(
contact_attempt
))
self
.
assertIsNotNone
(
unicode
(
contact_attempt
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment