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
17f234f0
authored
Mar 20, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: test
parent
2654f523
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
circle/storage/tests/test_models.py
+6
-1
No files found.
circle/storage/tests/test_models.py
View file @
17f234f0
...
...
@@ -2,7 +2,7 @@ from datetime import timedelta
from
django.test
import
TestCase
from
django.utils
import
timezone
from
mock
import
MagicMock
from
mock
import
MagicMock
,
Mock
from
..models
import
Disk
,
DataStore
...
...
@@ -81,3 +81,8 @@ class DiskTestCase(TestCase):
d
.
ready
=
False
with
self
.
assertRaises
(
MockException
):
Disk
.
save_as
(
d
)
def
test_download_percentage_no_download
(
self
):
d
=
MagicMock
(
spec
=
Disk
)
d
.
is_downloading
=
Mock
(
return_value
=
False
)
assert
Disk
.
get_download_percentage
(
d
)
is
None
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