MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

extra_tests/custom_text_test_runner.py:214–240  ·  view source on GitHub ↗
(
        self,
        stream,
        descriptions,
        verbosity,
        results_file_path,
        result_screenshots_dir,
        show_previous_results,
        config,
        test_types,
    )

Source from the content-addressed store, hash-verified

212 _pass_percentage_significant_digits = 2
213
214 def __init__(
215 self,
216 stream,
217 descriptions,
218 verbosity,
219 results_file_path,
220 result_screenshots_dir,
221 show_previous_results,
222 config,
223 test_types,
224 ):
225 super(CustomTextTestResult, self).__init__(stream, descriptions, verbosity)
226 store_class_fields(self, locals())
227 self.show_overall_results = verbosity > 0
228 self.show_test_info = verbosity > 1
229 self.show_individual_suite_results = verbosity > 2
230 self.show_errors = verbosity > 3
231 self.show_errors_detail = verbosity > 4
232 self.show_all = verbosity > 4
233 self.suite = None
234 self.total_execution_time = 0
235 self.separator1 = "=" * CustomTextTestResult._num_formatting_chars
236 self.separator2 = "-" * CustomTextTestResult._num_formatting_chars
237 self.separator3 = "_" * CustomTextTestResult._num_formatting_chars
238 self.separator4 = "*" * CustomTextTestResult._num_formatting_chars
239 self.separator_failure = "!" * CustomTextTestResult._num_formatting_chars
240 self.separator_pre_result = "." * CustomTextTestResult._num_formatting_chars
241
242 def getDescription(self, test):
243 doc_first_line = test.shortDescription()

Callers

nothing calls this directly

Calls 4

superClass · 0.85
store_class_fieldsFunction · 0.85
localsFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected