Example #1
0
 def test_reset(self, proxy):
     x = stub()
     configure(processors=[x], context_class=dict, wrapper_class=Wrapper)
     reset_defaults()
     b = proxy.bind()
     assert [x] != b._processors
     assert _BUILTIN_DEFAULT_PROCESSORS == b._processors
     assert isinstance(b, _BUILTIN_DEFAULT_WRAPPER_CLASS)
     assert _BUILTIN_DEFAULT_CONTEXT_CLASS == b._context.__class__
     assert _BUILTIN_DEFAULT_LOGGER_FACTORY is _CONFIG.logger_factory
Example #2
0
 def test_reset(self, proxy):
     x = stub()
     configure(processors=[x], context_class=dict, wrapper_class=Wrapper)
     reset_defaults()
     b = proxy.bind()
     assert [x] != b._processors
     assert _BUILTIN_DEFAULT_PROCESSORS == b._processors
     assert isinstance(b, _BUILTIN_DEFAULT_WRAPPER_CLASS)
     assert _BUILTIN_DEFAULT_CONTEXT_CLASS == b._context.__class__
     assert _BUILTIN_DEFAULT_LOGGER_FACTORY is _CONFIG.logger_factory
Example #3
0
 def teardown_method(self, method):
     reset_defaults()
Example #4
0
 def test_rest_resets_is_configured(self):
     configure()
     reset_defaults()
     assert False is _CONFIG.is_configured
Example #5
0
 def teardown_method(self, method):
     reset_defaults()
Example #6
0
 def test_rest_resets_is_configured(self):
     configure()
     reset_defaults()
     assert False is _CONFIG.is_configured
Example #7
0
 def teardown_class(cls):
     _config.reset_defaults()