Skip to content

Commit

Permalink
refactor: move test package from module
Browse files Browse the repository at this point in the history
  • Loading branch information
bamthomas committed Jan 11, 2025
1 parent 0e48745 commit d527257
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 21 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import pytest

from aioimaplib import aioimaplib
from aioimaplib.tests.imapserver import MockImapServer
from aioimaplib.tests.ssl_cert import create_temp_self_signed_cert
from aioimaplib.imapserver import MockImapServer
from tests.ssl_cert import create_temp_self_signed_cert


async def main_test(server: MockImapServer, ssl_context: Optional[SSLContext]):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

import pytest

from aioimaplib.tests.imapserver import Mail
from aioimaplib.tests.server_fixture import with_server, login_user_async
from aioimaplib.imapserver import Mail
from tests.server_fixture import with_server, login_user_async


@pytest.mark.asyncio()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

from aioimaplib import aioimaplib, extract_exists, STOP_WAIT_SERVER_PUSH, FetchCommand, IdleCommand
from aioimaplib.aioimaplib import Commands, IMAP4ClientProtocol, Command, Abort
from aioimaplib.tests import imapserver
from aioimaplib.tests.imapserver import Mail
from aioimaplib.tests.server_fixture import with_ssl_server, with_ssl, with_server, login_user_async, create_server
from aioimaplib import imapserver
from aioimaplib.imapserver import Mail
from tests.server_fixture import with_ssl_server, with_ssl, with_server, login_user_async, create_server

aioimaplib.log.setLevel(logging.WARNING)
sh = logging.StreamHandler()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

from aioimaplib import aioimaplib
from aioimaplib.aioimaplib import Abort
from aioimaplib.tests.imapserver import ImapProtocol, ServerState, MockImapServer
from aioimaplib.tests.server_fixture import with_server, login_user_async, main_test
from aioimaplib.imapserver import ImapProtocol, ServerState, MockImapServer
from tests.server_fixture import with_server, login_user_async, main_test

aioimaplib.log.setLevel(logging.WARNING)
sh = logging.StreamHandler()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import pytest

from aioimaplib import Command, CommandTimeout, STOP_WAIT_SERVER_PUSH, AioImapException, Response
from aioimaplib.tests import imapserver
from aioimaplib.tests.server_fixture import with_server, login_user_async, advance_time
from aioimaplib import imapserver
from tests.server_fixture import with_server, login_user_async, advance_time


@pytest.mark.asyncio()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import pytz
import sys

from aioimaplib.tests import imapserver
from aioimaplib.tests.imapserver import ServerState, Mail, MockImapServer, ImapProtocol, InvalidUidSet
from aioimaplib import imapserver
from aioimaplib.imapserver import ServerState, Mail, MockImapServer, ImapProtocol, InvalidUidSet
import pytest


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from aioimaplib import extract_exists
from aioimaplib.aioimaplib import Command
from aioimaplib.tests.server_fixture import with_server, login_user_async
from tests.server_fixture import with_server, login_user_async


@pytest.mark.asyncio()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
import pytest
from pytz import utc

from aioimaplib.tests import imapserver
from aioimaplib.tests.imapserver import Mail
from aioimaplib.tests.server_fixture import with_server, login_user, with_ssl, with_ssl_server
from aioimaplib import imapserver
from aioimaplib.imapserver import Mail
from tests.server_fixture import with_server, login_user, with_ssl, with_ssl_server


@pytest.mark.asyncio
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

from imaplib2 import imaplib2
from mock import Mock
from aioimaplib.tests import imapserver
from aioimaplib.tests.imapserver import Mail
from aioimaplib.tests.server_fixture import with_server, login_user
from aioimaplib import imapserver
from aioimaplib.imapserver import Mail
from tests.server_fixture import with_server, login_user
import pytest


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from OpenSSL import crypto
from unittest import TestCase

from aioimaplib.tests.ssl_cert import create_temp_self_signed_cert
from tests.ssl_cert import create_temp_self_signed_cert


class TestSslCert(TestCase):
Expand Down
File renamed without changes.

0 comments on commit d527257

Please sign in to comment.