Example #1
0
    def teardown(self):
        for action in config_ready._keep_on_reset[:]:
            default_object = im_self(action)
            if default_object and isinstance(default_object, TemporaryGlobalConfigurable):
                config_ready._keep_on_reset.remove(action)

        config_ready._reset()
    def teardown(self):
        for action in config_ready._keep_on_reset[:]:
            default_object = im_self(action)
            if default_object and isinstance(default_object,
                                             TemporaryGlobalConfigurable):
                config_ready._keep_on_reset.remove(action)

        config_ready._reset()
    def test_keeps_on_milestone_reset(self):
        class Configurable(TemporaryGlobalConfigurable):
            CONFIG_NAMESPACE = 'fake.'
            _CONFIGURED = []

            def configure(self, **options):
                self._CONFIGURED.append(True)

        default_object = Configurable.create_global()
        config_ready.reach()

        config_ready._reset()
        config_ready.reach()

        assert len(Configurable._CONFIGURED) == 2
Example #4
0
    def test_keeps_on_milestone_reset(self):
        class Configurable(TemporaryGlobalConfigurable):
            CONFIG_NAMESPACE = 'fake.'
            _CONFIGURED = []

            def configure(self, **options):
                self._CONFIGURED.append(True)

        default_object = Configurable.create_global()
        config_ready.reach()

        config_ready._reset()
        config_ready.reach()

        assert len(Configurable._CONFIGURED) == 2
 def setup(self):
     config_ready._reset()
Example #6
0
 def setup(self):
     config_ready._reset()