[apycotlib] keep a reference on the options dict in ATest
So it can be easily used from recipes
--- a/_apycotlib/atest.py Wed May 14 15:07:42 2014 +0200
+++ b/_apycotlib/atest.py Wed May 14 16:05:06 2014 +0200
@@ -57,7 +57,7 @@
sys.path.insert(0, clean_path(path))
-from narvalbot.engine import options_dict
+from narvalbot import options_dict
class Test(object):
"""the single source unit test class"""
@@ -94,6 +94,7 @@
self._failed_pp = set()
self.executed_checkers = {}
self.global_status = SUCCESS
+ self.options = options
os.umask(022)
def __str__(self):
@@ -268,7 +269,7 @@
def run_checker(self, id, displayname=None, nonexecuted=False, **kwargs):
"""run all checks in the test environment"""
- options = options_dict(self.texec['options'])
+ options = self.options.copy()
options.update(kwargs)
self._substitute(self.environment, options)
check_writer = self.writer.make_check_writer()