Merge pull request #5 from dnarvaez/atspi
Set the AT_SPI_CLIENT variable in the tests
This commit is contained in:
commit
f9e80a90f7
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user