1
0
mirror of https://github.com/borg-qt/borg-qt.git synced 2024-06-30 21:10:47 +02:00
borg-qt/tests/testcase.py
2019-01-26 11:44:51 +01:00

23 lines
543 B
Python

import os
import unittest
import warnings
from main_window import MainWindow
def fxn():
warnings.warn("deprecated", DeprecationWarning)
class BorgQtTestCase(unittest.TestCase):
def setUp(self):
with warnings.catch_warnings():
warnings.simplefilter("ignore")
fxn()
self.form = MainWindow()
self.dir_path = os.path.dirname(os.path.realpath(__file__))
self.config_path = os.path.join(self.dir_path,
'../docs/borg_qt.conf.example')