c60ebdfde066 — Oben Sonne 10 years ago
server: extend bong session tests
1 files changed, 21 insertions(+), 2 deletions(-)

M server/src/tests/test_bongsession.py
M server/src/tests/test_bongsession.py +21 -2
@@ 405,7 405,9 @@ def test_playercontrol():
     """Session: player control"""
 
     s, c = startandconnectserver()
-    p = startandconnectbong(s, c)
+    p = startandconnectbong(s, c, info_shufflemodes=['on', 'off'],
+                            info_repeatmodes=['off', 'track', 'list'],
+                            shuffle='on', repeat='off')
 
     c.snd("""
         - setvolume

          
@@ 416,7 418,24 @@ def test_playercontrol():
         - level: 33
     """)
 
-    # TODO: more of these
+    c.snd("""
+        - setplaying
+        - enabled: true
+
+        - setrepeat
+        - mode: track
+
+        - setshuffle
+        - mode: 'on'
+
+    """)
+    c.exp("""
+        - updateplaying
+        - enabled: true
+
+        - updaterepeat
+        - mode: track
+    """) # shuffle did not change -> no update
 
     c.disconnect()
     p.stop()