mirror of
https://github.com/chatmail/core.git
synced 2026-05-25 01:36:31 +03:00
Lint
This commit is contained in:
@@ -80,12 +80,12 @@ class ImapConn():
|
||||
def __del__(self):
|
||||
try:
|
||||
self.connection.close()
|
||||
except:
|
||||
pass
|
||||
except Exception:
|
||||
print("Could not close direct_imap conn")
|
||||
try:
|
||||
self.connection.logout()
|
||||
except:
|
||||
pass
|
||||
except Exception:
|
||||
print("Could not logout direct_imap conn")
|
||||
|
||||
|
||||
def make_direct_imap(account, folder):
|
||||
@@ -94,9 +94,11 @@ def make_direct_imap(account, folder):
|
||||
imap = ImapConn(folder, conn_info=conn_info)
|
||||
return imap
|
||||
|
||||
|
||||
def print_imap_structure(database, dir="."):
|
||||
print_imap_structure_ac(Account(database), dir)
|
||||
|
||||
|
||||
def print_imap_structure_ac(ac, dir="."):
|
||||
acinfo = ac.logid + "-" + ac.get_config("addr")
|
||||
print("================= ACCOUNT", acinfo, "=================")
|
||||
|
||||
@@ -17,8 +17,6 @@ from .capi import lib
|
||||
from .events import FFIEventLogger, FFIEventTracker
|
||||
from _pytest._code import Source
|
||||
|
||||
from .direct_imap import ImapConn
|
||||
|
||||
import deltachat
|
||||
|
||||
|
||||
|
||||
@@ -679,8 +679,6 @@ class TestOnlineAccount:
|
||||
time.sleep(1) # We might need to wait because Imaplib is slower than DC-Core
|
||||
assert imap2.get_unread_cnt() == 0
|
||||
|
||||
#print_imap_structure(ac1.db_path)
|
||||
|
||||
def test_mark_bcc_read_on_server(self, acfactory, lp):
|
||||
ac1 = acfactory.get_online_configuring_account(mvbox=True, move=True)
|
||||
ac2 = acfactory.get_online_configuring_account()
|
||||
@@ -712,8 +710,6 @@ class TestOnlineAccount:
|
||||
break
|
||||
time.sleep(1) # We might need to wait because Imaplib is slower than DC-Core
|
||||
|
||||
#print_imap_structure(ac1.db_path)
|
||||
|
||||
assert imap1.get_unread_cnt() == 0
|
||||
|
||||
def test_send_file_twice_unicode_filename_mangling(self, tmpdir, acfactory, lp):
|
||||
|
||||
Reference in New Issue
Block a user