Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
 def tearDown(self):
     config._swap(self._config)
     self._config = None
Ejemplo n.º 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)
Ejemplo n.º 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
Ejemplo n.º 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)
Ejemplo n.º 7
0
Archivo: util.py Proyecto: 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
Ejemplo n.º 8
0
Archivo: util.py Proyecto: 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)
Ejemplo n.º 9
0
 def teardown_config(self):
     config._swap(self._config)
     self._config = None
Ejemplo n.º 10
0
 def setup_config(self):
     self._config = _create_locked_config(dict(self.settings))
     config._swap(self._config)