示例#1
0
 def setUp(self):
     self.maxDiff = None
     # shield unit tests from any user config overrides
     os.environ["REZ_QUIET"] = "true"
     # to make sure config changes from one test don't affect another, copy
     # the overrides dict...
     self._config = _create_locked_config(dict(self.settings))
     config._swap(self._config)
示例#2
0
    def setup_config(self):
        # to make sure config changes from one test don't affect another, copy
        # the overrides dict...
        self._config = _create_locked_config(
            dict(
                self.settings,
                **{

                    # All tests have been written with this enabled
                    # TODO: Refactor tests to either take or not take this
                    # into account. Currently, no tests are made with this
                    # setting *disabled*.
                    "inherit_parent_environment": True,
                }))

        config._swap(self._config)
示例#3
0
 def tearDown(self):
     config._swap(self._config)
     self._config = None
示例#4
0
 def setUp(self):
     self.maxDiff = None
     # shield unit tests from any user config overrides
     os.environ["REZ_QUIET"] = "true"
     self._config = _create_locked_config(self.settings)
     config._swap(self._config)
示例#5
0
 def teardown_config(self):
     # moved to it's own section because it's called in update_settings...
     # so if in the future, tearDown does more than call this,
     # update_settings is still valid
     config._swap(self._config)
     self._config = None
示例#6
0
 def setup_config(self):
     # to make sure config changes from one test don't affect another, copy
     # the overrides dict...
     self._config = _create_locked_config(dict(self.settings))
     config._swap(self._config)
示例#7
0
文件: util.py 项目: mottosso/rez
 def teardown_config(self):
     # moved to it's own section because it's called in update_settings...
     # so if in the future, tearDown does more than call this,
     # update_settings is still valid
     config._swap(self._config)
     self._config = None
示例#8
0
文件: util.py 项目: mottosso/rez
 def setup_config(self):
     # to make sure config changes from one test don't affect another, copy
     # the overrides dict...
     self._config = _create_locked_config(dict(self.settings))
     config._swap(self._config)
示例#9
0
文件: util.py 项目: davidlatwe/sweet
 def teardown_config(self):
     config._swap(self._config)
     self._config = None
示例#10
0
文件: util.py 项目: davidlatwe/sweet
 def setup_config(self):
     self._config = _create_locked_config(dict(self.settings))
     config._swap(self._config)