mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-04 13:57:44 +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,9 +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
|
||||
|
||||
from boswatch.packet.packet import Packet
|
||||
|
||||
|
|
@ -24,6 +23,9 @@ from boswatch.packet.packet import Packet
|
|||
class Test_Packet:
|
||||
"""!Unittests for the BOSWatch packet"""
|
||||
|
||||
def setup_method(self, method):
|
||||
logging.debug("[TEST] %s.%s" % (type(self).__name__, method.__name__))
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
def buildPacket(self):
|
||||
"""!Build a BOSWatch packet and serve it to each test"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue