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
itminedu
synnefo
Commits
55388042
Commit
55388042
authored
Aug 29, 2013
by
Sofia Papagiannaki
Browse files
pithos: Fix test
parent
f8fcdba8
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-pithos-app/pithos/api/test/public.py
View file @
55388042
...
...
@@ -204,7 +204,7 @@ class TestPublic(PithosAPITest):
url
=
join_urls
(
self
.
pithos_path
,
self
.
user
,
cname
,
oname
)
r
=
self
.
get
(
'%s?version=list&format=json'
%
url
)
version_list
=
json
.
loads
(
r
.
content
)[
'versions'
]
mtime
=
[
int
(
t
[
1
])
for
t
in
version_list
]
mtime
=
[
int
(
float
(
t
[
1
])
)
for
t
in
version_list
]
# delete object history
i
=
random
.
randrange
(
len
(
mtime
))
...
...
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