Commits

Thomas Waldmann committed 67e6cfa

rename test_connection to check_connection, so it is not confused with tests

Comments (0)

Files changed (3)

MoinMoin/_tests/__init__.py

     item.destroy()
 
 
-def test_connection(port, host='127.0.0.1'):
+def check_connection(port, host='127.0.0.1'):
     """
     Check if we can make a connection to host:port.
 

MoinMoin/storage/stores/_tests/conftest.py

 import pytest
 from ..wrappers import ByteToStreamWrappingStore
 
-from MoinMoin._tests import test_connection
+from MoinMoin._tests import check_connection
 
 STORES_PACKAGE = 'MoinMoin.storage.stores'
 
 STORES = 'fs kc memory sqlite sqlite:compressed sqla'.split()
 try:
     # check if we can connect to the kt server
-    test_connection(1978)
+    check_connection(1978)
     STORES.append('kt')
 except Exception:
     pass

MoinMoin/storage/stores/_tests/test_kt.py

 pytest.importorskip('MoinMoin.storage.stores.kt')
 
 
-from MoinMoin._tests import test_connection
+from MoinMoin._tests import check_connection
 try:
-    test_connection(1978)
+    check_connection(1978)
 except Exception as err:
     pytest.skip(str(err))