Skip to content
Snippets Groups Projects
base_test_case.py 434 B
Newer Older
Kien Le's avatar
Kien Le committed
from unittest import TestCase
from sohstationviewer.conf import dbSettings


class BaseTestCase(TestCase):
    """
    Class used to base all tests upon. This is used to run some code before any
    test is run. Primarily intended to fix problem with resource location.
    """
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        dbSettings.dbConf['dbpath'] = 'sohstationviewer/database/soh.db'