Refactors unittest directory
This commit is contained in:
parent
0e4e31a54d
commit
f250c68c20
12 changed files with 9 additions and 4 deletions
4
Makefile
Normal file
4
Makefile
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
install:
|
||||||
|
mkdir database
|
||||||
|
mkdir logs
|
||||||
|
pip install -e . && python setup.py develop
|
|
@ -1,5 +1,6 @@
|
||||||
from random import randint
|
import unittest
|
||||||
|
|
||||||
|
from random import randint
|
||||||
import faker
|
import faker
|
||||||
from faker.providers import internet
|
from faker.providers import internet
|
||||||
from faker.providers import lorem
|
from faker.providers import lorem
|
||||||
|
@ -12,7 +13,7 @@ from src.database.queries import get_claim_hidden_comments
|
||||||
from src.database.writes import create_comment_or_error
|
from src.database.writes import create_comment_or_error
|
||||||
from src.database.queries import hide_comments_by_id
|
from src.database.queries import hide_comments_by_id
|
||||||
from src.database.queries import delete_comment_by_id
|
from src.database.queries import delete_comment_by_id
|
||||||
from tests.testcase import DatabaseTestCase
|
from test.testcase import DatabaseTestCase
|
||||||
|
|
||||||
fake = faker.Faker()
|
fake = faker.Faker()
|
||||||
fake.add_provider(internet)
|
fake.add_provider(internet)
|
|
@ -1,6 +1,6 @@
|
||||||
|
import unittest
|
||||||
import atexit
|
import atexit
|
||||||
import os
|
import os
|
||||||
import unittest
|
|
||||||
from multiprocessing.pool import Pool
|
from multiprocessing.pool import Pool
|
||||||
import asyncio
|
import asyncio
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
@ -15,7 +15,7 @@ from faker.providers import misc
|
||||||
|
|
||||||
from src.settings import config
|
from src.settings import config
|
||||||
from src.server import app
|
from src.server import app
|
||||||
from tests.testcase import AsyncioTestCase
|
from test.testcase import AsyncioTestCase
|
||||||
|
|
||||||
|
|
||||||
fake = faker.Faker()
|
fake = faker.Faker()
|
Loading…
Reference in a new issue