mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 14:25:45 +00:00
add pytest and his config
incl. first tests
This commit is contained in:
parent
bb4922a65b
commit
bda9276431
7 changed files with 186 additions and 0 deletions
0
test/__init__.py
Normal file
0
test/__init__.py
Normal file
36
test/test_header.py
Normal file
36
test/test_header.py
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
____ ____ ______ __ __ __ _____
|
||||
/ __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
|
||||
/ __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
|
||||
/ /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
|
||||
/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
|
||||
German BOS Information Script
|
||||
by Bastian Schroll
|
||||
|
||||
@file: test_header.py
|
||||
@date: 12.12.2017
|
||||
@author: Bastian Schroll
|
||||
@description: Unittests for BOSWatch. File must be run as "pytest" unittest
|
||||
"""
|
||||
|
||||
import pytest # impot the pytest framework
|
||||
|
||||
import boswatch.utils.header
|
||||
|
||||
|
||||
class Test_Header():
|
||||
"""!Unittests for the header"""
|
||||
|
||||
def test_logoToLog(self):
|
||||
"""!Test logo to log"""
|
||||
assert boswatch.utils.header.logoToLog()
|
||||
|
||||
def test_infoToLog(self):
|
||||
"""!Test info to log"""
|
||||
assert boswatch.utils.header.infoToLog()
|
||||
|
||||
def test_logoToScreen(self):
|
||||
"""!Test logo to screen"""
|
||||
assert boswatch.utils.header.logoToScreen()
|
||||
Loading…
Add table
Add a link
Reference in a new issue