Merge pull request #5 from dnarvaez/atspi

Set the AT_SPI_CLIENT variable in the tests
This commit is contained in:
manuq 2013-06-18 08:03:11 -07:00
commit f9e80a90f7

View File

@ -35,10 +35,14 @@ class UITestCase(unittest.TestCase):
self._orig_level = logger.getEffectiveLevel() self._orig_level = logger.getEffectiveLevel()
logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG)
os.environ["AT_SPI_CLIENT"] = "yes"
def tearDown(self): def tearDown(self):
logger = logging.getLogger() logger = logging.getLogger()
logger.setLevel(self._orig_level) logger.setLevel(self._orig_level)
del os.environ["AT_SPI_CLIENT"]
@contextmanager @contextmanager
def run_view(self, name): def run_view(self, name):
view_path = os.path.join("views", "%s.py" % name) view_path = os.path.join("views", "%s.py" % name)