예제 #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 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)
예제 #4
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)
예제 #5
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)
예제 #6
0
파일: util.py 프로젝트: davidlatwe/sweet
 def setup_config(self):
     self._config = _create_locked_config(dict(self.settings))
     config._swap(self._config)