Move tests to tests folder

This commit is contained in:
Balakrishnan Balasubramanian 2023-06-13 21:12:46 -04:00
parent 3ba9c44d51
commit bfe154d672
6 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ shell:
MYPYPATH=`pipenv --venv`/lib/python3.11/site-packages pipenv shell MYPYPATH=`pipenv --venv`/lib/python3.11/site-packages pipenv shell
test: test:
pipenv run python -m unittest mail4one/*test.py pipenv run python -m unittest discover
build: clean build: clean
pipenv run python -m pip install -r <(pipenv requirements ) --target build pipenv run python -m pip install -r <(pipenv requirements ) --target build

0
tests/__init__.py Normal file
View File

View File

@ -1,6 +1,6 @@
import unittest import unittest
from . import config from mail4one import config
TEST_CONFIG = """ TEST_CONFIG = """
{ {

View File

@ -4,8 +4,8 @@ import logging
import tempfile import tempfile
import time import time
import os import os
from .pop3 import create_pop_server from mail4one.pop3 import create_pop_server
from .config import User from mail4one.config import User
from pathlib import Path from pathlib import Path
TEST_HASH = "".join(c for c in """ TEST_HASH = "".join(c for c in """

View File

@ -1,4 +1,4 @@
from .pwhash import gen_pwhash, parse_hash, check_pass, SALT_LEN, KEY_LEN from mail4one.pwhash import gen_pwhash, parse_hash, check_pass, SALT_LEN, KEY_LEN
import unittest import unittest

View File

@ -7,7 +7,7 @@ import os
from pathlib import Path from pathlib import Path
from .smtp import create_smtp_server from mail4one.smtp import create_smtp_server
TEST_MBOX = 'foobar_mails' TEST_MBOX = 'foobar_mails'
MAILS_PATH: Path MAILS_PATH: Path