diff options
| author | Jan Pokorný <jpokorny@redhat.com> | 2015-08-11 21:37:15 +0200 |
|---|---|---|
| committer | Jan Pokorný <jpokorny@redhat.com> | 2015-08-11 23:29:43 +0200 |
| commit | c5f61038417e3877a1483efbcc3266643d8aa42c (patch) | |
| tree | 63a7905a16f2c85dbcf5175043f0f0ff4f37d11b /tests/_com | |
| parent | acef7d1db5cb074e7aa618e2425ca95c0541a8b2 (diff) | |
| download | clufter-c5f61038417e3877a1483efbcc3266643d8aa42c.tar.gz clufter-c5f61038417e3877a1483efbcc3266643d8aa42c.tar.xz clufter-c5f61038417e3877a1483efbcc3266643d8aa42c.zip | |
tests/_common.py, import -> tests/_com, execfile
Preparing ground for nested test and unittest not playing well with
symlinked _common.py in such the respective nested directory.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'tests/_com')
| -rw-r--r-- | tests/_com | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/_com b/tests/_com new file mode 100644 index 0000000..a4b4e96 --- /dev/null +++ b/tests/_com @@ -0,0 +1,23 @@ +# -*- coding: UTF-8 -*- +# Copyright 2014 Red Hat, Inc. +# Part of clufter project +# Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt) +"""Common base for testing""" +__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>" + + +from os.path import join, dirname as d; execfile(join(d(d((__file__))), '_go')) + + +from unittest import TestCase + +from .filter_manager import FilterManager + + +class CommonFilterTestCase(TestCase): + def setUp(self): + self.flt_mgr = FilterManager.init_lookup(ext_plugins=False) + + #def tearDown(self): + # self.flt_mgr.registry.setup(True) # start from scratch + # self.flt_mgr = None |
