Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7be151af
authored
Jul 02, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: modularize tests
parent
733c08a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
one/tests/__init__.py
+0
-0
one/tests/test_models.py
+0
-5
one/tests/test_views.py
+9
-0
No files found.
one/tests/__init__.py
0 → 100644
View file @
7be151af
one/tests.py
→
one/tests
/test_models
.py
View file @
7be151af
...
...
@@ -2,11 +2,6 @@ from django.test import TestCase
from
django.contrib.auth.models
import
User
from
models
import
Disk
,
Instance
,
InstanceType
,
Network
,
Template
,
UserCloudDetails
class
ViewsTestCase
(
TestCase
):
def
test_index
(
self
):
'''Test whether index is reachable.'''
resp
=
self
.
client
.
get
(
'/'
,
follow
=
True
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
class
UserCloudDetailsTestCase
(
TestCase
):
def
setUp
(
self
):
...
...
one/tests/test_views.py
0 → 100644
View file @
7be151af
from
django.core.urlresolvers
import
reverse
from
django.test
import
TestCase
class
ViewsTestCase
(
TestCase
):
def
test_index
(
self
):
'''Test whether index is reachable.'''
url
=
reverse
(
'one.views.index'
)
resp
=
self
.
client
.
get
(
url
,
follow
=
True
)
self
.
assertEqual
(
resp
.
status_code
,
200
)
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