fix(testing): test record removal (#28114)

This commit is contained in:
David Arnold 2024-10-13 12:33:34 +02:00 committed by GitHub
parent 008984b164
commit a8ae9f9f0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -387,7 +387,7 @@ class TestRecordLog:
"""
Remove all records for the specified doctype from the log.
"""
if self._log is not None and doctype in self._log:
if doctype in self.get():
del self._log[doctype]
self._remove_from_log(doctype)
testing_logger.debug(f" > {doctype:<30} deleted from {self.log_file}")