chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d3369bc
)
Make tests/play.py more reliable.
author
Richard Kettlewell
<rjk@greenend.org.uk>
Thu, 10 Jan 2008 13:53:29 +0000
(13:53 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Thu, 10 Jan 2008 13:53:29 +0000
(13:53 +0000)
tests/play.py
patch
|
blob
|
blame
|
history
diff --git
a/tests/play.py
b/tests/play.py
index 3d09bd18c8ad0bbd84ea4db1cd36a916dabb6c06..c638572466943f31ae801d23857f320ee347af6d 100755
(executable)
--- a/
tests/play.py
+++ b/
tests/play.py
@@
-27,6
+27,7
@@
def test():
c = disorder.client()
track = u"%s/Joe Bloggs/First Album/02:Second track.ogg" % dtest.tracks
print " adding track to queue"
+ c.disable()
c.play(track)
print " checking track turned up in queue"
q = c.queue()
@@
-36,6
+37,7
@@
def test():
assert t['submitter'] == u'fred', "check queue submitter"
i = t['id']
print " waiting for track"
+ c.enable()
p = c.playing()
r = c.recent()
while not((p is not None and p['id'] == i)