mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-06 06:43:54 +00:00
add some tests
This commit is contained in:
parent
73c0541629
commit
9932908eee
2 changed files with 193 additions and 0 deletions
38
test/test_descriptor.py
Normal file
38
test/test_descriptor.py
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
____ ____ ______ __ __ __ _____
|
||||
/ __ )/ __ \/ ___/ | / /___ _/ /______/ /_ |__ /
|
||||
/ __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ /_ <
|
||||
/ /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / ___/ /
|
||||
/_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ /____/
|
||||
German BOS Information Script
|
||||
by Bastian Schroll
|
||||
|
||||
@file: test_descriptor.py
|
||||
@date: 07.01.2017
|
||||
@author: Bastian Schroll
|
||||
@description: Unittests for BOSWatch. File must be run as "pytest" unittest
|
||||
"""
|
||||
|
||||
|
||||
# import pytest # import the pytest framework
|
||||
|
||||
from boswatch.descriptor import descriptor
|
||||
|
||||
|
||||
|
||||
class Test_Descriptor:
|
||||
"""!Unittests for the descriptor
|
||||
|
||||
@todo Error because path's in paths.py are false"""
|
||||
|
||||
def test_loadCSVnotExist(self):
|
||||
"""!read CSV file where not exist"""
|
||||
descList = descriptor.DescriptionList("boswatch")
|
||||
assert bool(descList._getFullList()) is False
|
||||
|
||||
def test_loadCSV(self):
|
||||
"""!read CSV file"""
|
||||
descList = descriptor.DescriptionList("zvei")
|
||||
assert bool(descList._getFullList()) is True
|
||||
Loading…
Add table
Add a link
Reference in a new issue