Return OK on noidle
This commit is contained in:
parent
1966bb457c
commit
7922795d2f
@ -26,6 +26,8 @@ We got an updated :doc:`release roadmap <development/roadmap>`!
|
||||
command error instead of crashing.
|
||||
- ``list`` accepts field argument without quotes and capitalized, to work
|
||||
with GMPC and ncmpc.
|
||||
- ``noidle`` command now returns ``OK`` instead of an error. Should make some
|
||||
clients work a bit better.
|
||||
|
||||
|
||||
0.1.0a2 (2010-06-02)
|
||||
|
||||
@ -1248,7 +1248,7 @@ class MpdFrontend(object):
|
||||
@handle_pattern(r'^noidle$')
|
||||
def _status_noidle(self):
|
||||
"""See :meth:`_status_idle`."""
|
||||
raise MpdNotImplemented # TODO
|
||||
pass # TODO
|
||||
|
||||
@handle_pattern(r'^stats$')
|
||||
def _status_stats(self):
|
||||
|
||||
@ -146,7 +146,7 @@ class StatusHandlerTest(unittest.TestCase):
|
||||
|
||||
def test_noidle(self):
|
||||
result = self.h.handle_request(u'noidle')
|
||||
self.assert_(u'ACK [0@0] {} Not implemented' in result)
|
||||
self.assert_(u'OK' in result)
|
||||
|
||||
def test_stats_command(self):
|
||||
result = self.h.handle_request(u'stats')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user