Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
23fe1e77
Commit
23fe1e77
authored
Jan 03, 2017
by
David Haynes
Browse files
Add RegisteredUserTest model
- and a sample test
parent
9ddf7826
Pipeline
#723
passed with stage
in 1 minute and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
go/go/test_models.py
View file @
23fe1e77
...
...
@@ -7,10 +7,18 @@ from go.models import URL, RegisteredUser
"""
Test cases for the URL Model
"""
class
URLTest
Case
(
TestCase
):
class
URLTest
(
TestCase
):
"""
Default test case, does not actually test anything
"""
def
test_Django_Test
(
self
):
self
.
assertEqual
(
"Hello World!"
,
"Hello World!"
)
"""
Test cases for the RegisteredUser Model
"""
class
RegisteredUserTest
(
TestCase
):
def
test_Django_Test
(
self
):
self
.
assertEqual
(
1
+
1
,
2
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment