Fix account related tests

This commit is contained in:
Ivan Kravets committed 2022-05-18 22:18:15 +03:00
1 parent d2d46f4aea
commit 3c2afeba89
3 files changed
+148 -176

No files matched your search

+3 -3
View File
@@ -93,9 +93,9 @@ def without_internet(monkeypatch):
@pytest.fixture
def receive_email(): # pylint:disable=redefined-outer-name, too-many-locals
def _receive_email(from_who):
test_email = os.environ.get("TEST_EMAIL_LOGIN")
test_password = os.environ.get("TEST_EMAIL_PASSWORD")
imap_server = os.environ.get("TEST_EMAIL_IMAP_SERVER") or "imap.gmail.com"
test_email = os.environ["TEST_EMAIL_LOGIN"]
test_password = os.environ["TEST_EMAIL_PASSWORD"]
imap_server = os.environ["TEST_EMAIL_IMAP_SERVER"]
def get_body(msg):
if msg.is_multipart():