Import formats
This commit is contained in:
parent
1b79aefb05
commit
c56562e7ea
4 changed files with 21 additions and 17 deletions
|
@ -3,14 +3,14 @@ import sqlite3
|
||||||
|
|
||||||
from asyncio import coroutine
|
from asyncio import coroutine
|
||||||
|
|
||||||
from database.queries import delete_comment_by_id
|
from src.database.queries import delete_comment_by_id
|
||||||
from src.server.misc import is_authentic_delete_signal, request_lbrynet, validate_signature_from_claim
|
from src.server.misc import is_authentic_delete_signal, request_lbrynet, validate_signature_from_claim
|
||||||
|
|
||||||
from database.queries import get_comment_or_none
|
from src.database.queries import get_comment_or_none
|
||||||
from database.queries import insert_comment
|
from src.database.queries import insert_comment
|
||||||
from database.queries import insert_channel
|
from src.database.queries import insert_channel
|
||||||
from database.queries import get_channel_id_from_comment_id
|
from src.database.queries import get_channel_id_from_comment_id
|
||||||
from database.queries import hide_comment_by_id
|
from src.database.queries import hide_comment_by_id
|
||||||
from src.server.misc import channel_matches_pattern_or_error
|
from src.server.misc import channel_matches_pattern_or_error
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
|
@ -7,15 +7,16 @@ from aiohttp import web
|
||||||
from aiojobs.aiohttp import atomic
|
from aiojobs.aiohttp import atomic
|
||||||
|
|
||||||
from src.server.misc import clean_input_params
|
from src.server.misc import clean_input_params
|
||||||
from database.queries import get_claim_comments
|
from src.database.queries import get_claim_comments
|
||||||
from database.queries import get_comments_by_id, get_comment_ids
|
from src.database.queries import get_comments_by_id, get_comment_ids
|
||||||
from database.queries import get_channel_id_from_comment_id
|
from src.database.queries import get_channel_id_from_comment_id
|
||||||
|
from src.database.queries import get_hidden_claim_comments
|
||||||
from src.server.misc import is_valid_base_comment
|
from src.server.misc import is_valid_base_comment
|
||||||
from src.server.misc import is_valid_credential_input
|
from src.server.misc import is_valid_credential_input
|
||||||
from src.server.misc import make_error
|
from src.server.misc import make_error
|
||||||
from database.writes import delete_comment_if_authorized
|
from src.database.writes import delete_comment_if_authorized
|
||||||
from database.writes import write_comment
|
from src.database.writes import write_comment
|
||||||
from database.writes import hide_comment_if_authorized
|
from src.database.writes import hide_comment_if_authorized
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
|
@ -5,10 +5,13 @@ from faker.providers import internet
|
||||||
from faker.providers import lorem
|
from faker.providers import lorem
|
||||||
from faker.providers import misc
|
from faker.providers import misc
|
||||||
|
|
||||||
from database.queries import get_comments_by_id
|
from src.database.queries import get_comments_by_id
|
||||||
from database.queries import get_comment_ids
|
from src.database.queries import get_comment_ids
|
||||||
from database.queries import get_claim_comments
|
from src.database.queries import get_claim_comments
|
||||||
from database.writes import create_comment_or_error
|
from src.database.queries import get_hidden_claim_comments
|
||||||
|
from src.database.writes import create_comment_or_error
|
||||||
|
from src.database.queries import hide_comment_by_id
|
||||||
|
from src.database.queries import delete_comment_by_id
|
||||||
from tests.testcase import DatabaseTestCase
|
from tests.testcase import DatabaseTestCase
|
||||||
|
|
||||||
fake = faker.Faker()
|
fake = faker.Faker()
|
||||||
|
|
|
@ -6,7 +6,7 @@ from unittest.case import _Outcome
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from database.queries import obtain_connection, setup_database
|
from src.database.queries import obtain_connection, setup_database
|
||||||
|
|
||||||
|
|
||||||
class AsyncioTestCase(unittest.TestCase):
|
class AsyncioTestCase(unittest.TestCase):
|
||||||
|
|
Loading…
Reference in a new issue