MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / add_success

Function add_success

web/regression/python_test_utils/test_utils.py:1111–1125  ·  view source on GitHub ↗

This function add the passed test cases in list i.e. TextTestResult.passed :param self:TextTestResult class :type self: TextTestResult object :param test: test case :type test: test case object :return: None

(self, test)

Source from the content-addressed store, hash-verified

1109
1110# This method is overridden to catch passed test cases
1111def add_success(self, test):
1112 """
1113 This function add the passed test cases in list i.e. TextTestResult.passed
1114 :param self:TextTestResult class
1115 :type self: TextTestResult object
1116 :param test: test case
1117 :type test: test case object
1118 :return: None
1119 """
1120 if self.showAll:
1121 self.passed.append((test, "Passed"))
1122 self.stream.writeln("ok")
1123 elif self.dots:
1124 self.stream.write('.')
1125 self.stream.flush()
1126
1127
1128def get_scenario_name(cases):

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
flushMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected