Remove debug sattements in unit tests

This commit is contained in:
Nick Hall 2022-01-29 21:49:59 +00:00
parent 810d2fca24
commit b8e5eacbbe
2 changed files with 5 additions and 5 deletions

View File

@ -98,10 +98,10 @@ class BaseTest(unittest.TestCase):
filter_.set_invert(invert) filter_.set_invert(invert)
stime = perf_counter() stime = perf_counter()
results = filter_.apply(self.db) results = filter_.apply(self.db)
if __debug__: # if __debug__:
frame = inspect.currentframe() # frame = inspect.currentframe()
rulename = frame.f_back.f_code.co_name # rulename = frame.f_back.f_code.co_name
print("%s: %.2f\n" % (rulename, perf_counter() - stime)) # print("%s: %.2f\n" % (rulename, perf_counter() - stime))
return set(results) return set(results)
def test_Complex_1(self): def test_Complex_1(self):

View File

@ -132,7 +132,7 @@ class DbTestClassBase(object):
self._log_sig("note-delete", args) self._log_sig("note-delete", args)
def _log_sig(self, sig, args): def _log_sig(self, sig, args):
print("('%s', %s)," % (sig, args)) # print("('%s', %s)," % (sig, args))
self.sigs.append((sig, args[0])) self.sigs.append((sig, args[0]))
def _cm_pers_add(self, *args): def _cm_pers_add(self, *args):