]> git.decadent.org.uk Git - dak.git/blob - tests/base_test.py
Add .xz as a valid extension in various places.
[dak.git] / tests / base_test.py
1 import os
2 import sys
3 import unittest
4 import warnings
5
6 from os.path import abspath, dirname, join
7
8 DAK_ROOT_DIR = dirname(dirname(abspath(__file__)))
9
10 class DakTestCase(unittest.TestCase):
11     def setUp(self):
12         pass
13
14 def fixture(*dirs):
15     return join(DAK_ROOT_DIR, 'tests', 'fixtures', *dirs)
16
17 os.environ['DAK_TEST'] = '1'
18 os.environ['DAK_CONFIG'] = fixture('dak.conf')
19
20 if DAK_ROOT_DIR not in sys.path:
21     sys.path.insert(0, DAK_ROOT_DIR)