diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/Testing/Interfaces/TestFrameworkRegistry.py --- a/src/eric7/Testing/Interfaces/TestFrameworkRegistry.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/Testing/Interfaces/TestFrameworkRegistry.py Wed Jul 13 14:55:47 2022 +0200 @@ -11,10 +11,10 @@ import copy -class TestFrameworkRegistry(): +class TestFrameworkRegistry: """ Class implementing a simple registry of test framework interfaces. - + The test executor for a framework is responsible for running the tests, receiving the results and preparing them for display. It must implement the interface of TestExecutorBase. @@ -23,27 +23,28 @@ can then create the assoicated test executor when '.createExecutor()' is called. """ + def __init__(self): """ Constructor """ self.__frameworks = {} - + def register(self, executorClass): """ Public method to register a test framework executor. - + @param executorClass class implementing the test framework executor @type TestExecutorBase """ self.__frameworks[executorClass.name] = executorClass - + def createExecutor(self, framework, widget): """ Public method to create a test framework executor. - + Note: The executor classes have to be registered first. - + @param framework name of the test framework @type str @param widget reference to the unit test widget @@ -53,11 +54,11 @@ """ cls = self.__frameworks[framework] return cls(widget) - + def getFrameworks(self): """ Public method to get a copy of the registered frameworks. - + @return copy of the registered frameworks @rtype dict """