Move tests to tests folder
This commit is contained in:
parent
3ba9c44d51
commit
bfe154d672
2
Makefile
2
Makefile
@ -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
0
tests/__init__.py
Normal file
@ -1,6 +1,6 @@
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from . import config
|
from mail4one import config
|
||||||
|
|
||||||
TEST_CONFIG = """
|
TEST_CONFIG = """
|
||||||
{
|
{
|
@ -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 """
|
@ -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
|
||||||
|
|
||||||
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user