コード例 #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)