The `clear_component_registry` function is a method in the `EnvironmentStub` class of the `trac.test` module in Python. This function is used to remove all components from the component registry in Trac environment testing setups. Components are generally registered in the registry to provide services or functionality within Trac. By calling the `clear_component_registry` function, all the registered components are removed from the registry, which can be useful in test cases to ensure a clean and isolated environment for testing purposes.
Python EnvironmentStub.clear_component_registry - 15 examples found. These are the top rated real world Python examples of trac.test.EnvironmentStub.clear_component_registry extracted from open source projects. You can rate examples to help us improve the quality of examples.