4203cae47baf — Oben Sonne 10 years ago
server: do not need extra test function names in doc strings
2 files changed, 3 insertions(+), 15 deletions(-)

M server/src/tests/test_bongsession.py
M server/src/tests/test_serveronly.py
M server/src/tests/test_bongsession.py +1 -11
@@ 103,14 103,12 @@ def startandconnectbong(s, c, **playerda
     return p
 
 def test_serveronly():
-    """Session: server only"""
 
     s, c = startandconnectserver()
     c.disconnect()
     s.stop()
 
 def test_initialplayerinteraction_1():
-    """Session: initial player interaction messages 1"""
 
     s, c = startandconnectserver()
 

          
@@ 178,11 176,7 @@ def test_initialplayerinteraction_1():
     s.stop()
 
 def test_initialplayerinteraction_2():
-    """Session: initial player interaction messages 2
 
-    This time Bong already runs when the server is started.
-
-    """
     # --- start Bong first ----------------------------------------------------
 
     p = Player(info_repeatmodes=['on', 'off']) # TODO: also set some mlib actions

          
@@ 227,7 221,6 @@ def test_initialplayerinteraction_2():
     s.stop()
 
 def test_stateupdates():
-    """Session: bong state updates"""
 
     s, c = startandconnectserver()
     p = startandconnectbong(s, c, info_shufflemodes=['on', 'off'])

          
@@ 340,7 333,6 @@ def test_stateupdates():
     s.stop()
 
 def test_badtrack():
-    """Session: bad track from bong"""
 
     s, c = startandconnectserver()
     p = startandconnectbong(s, c)

          
@@ 372,7 364,6 @@ def test_badtrack():
     s.stop(expecterrors=True)
 
 def test_badrepeat():
-    """Session: bad repeat mode from bong"""
 
     s, c = startandconnectserver()
 

          
@@ 402,7 393,6 @@ def test_badrepeat():
     s.stop(expecterrors=True)
 
 def test_playercontrol():
-    """Session: player control"""
 
     s, c = startandconnectserver()
     p = startandconnectbong(s, c, info_shufflemodes=['on', 'off'],

          
@@ 494,6 484,6 @@ def test_playercontrol():
     s.stop()
 
 def test_library():
-    """Session: bong library"""
+    pass
     # TODO
 

          
M server/src/tests/test_serveronly.py +2 -4
@@ 7,15 7,13 @@ import time
 
 from . import Server
 
-def test_serverstart():
-    """Server: plain start and stop"""
+def test_startstop():
 
     s = Server()
     time.sleep(1)
     s.stop()
 
-def test_serverstart_hostname():
-    """Server: hostnames"""
+def test_hostnames():
 
     s = Server(wifi_host='localhost', wifi_port=60321)
     time.sleep(1)