mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-08 07:43:57 +00:00
log testname on test run
This commit is contained in:
parent
5f6addfbc8
commit
e10a51dd02
6 changed files with 27 additions and 12 deletions
|
|
@ -14,8 +14,8 @@
|
|||
@author: Bastian Schroll
|
||||
@description: Unittests for BOSWatch. File must be _run as "pytest" unittest
|
||||
"""
|
||||
|
||||
import pytest # import the pytest framework
|
||||
import pytest
|
||||
import logging
|
||||
import time
|
||||
|
||||
from boswatch.network.server import TCPServer
|
||||
|
|
@ -25,6 +25,9 @@ from boswatch.network.client import TCPClient
|
|||
class Test_ServerClient:
|
||||
"""!Unittest for the server/client environment"""
|
||||
|
||||
def setup_method(self, method):
|
||||
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
def useServer(self):
|
||||
"""!Start and serve the sever for each functions where useServer is given"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue