Move router to its own app
This commit is contained in:
parent
c2c5f955e8
commit
9168ac32de
5 changed files with 15 additions and 17 deletions
|
@ -1,11 +1,12 @@
|
|||
import time
|
||||
import asyncio
|
||||
import os
|
||||
import tempfile
|
||||
import psutil
|
||||
from catfish.utils.processes import terminate_processes
|
||||
import asyncio
|
||||
from .router import run_server
|
||||
import time
|
||||
|
||||
import psutil
|
||||
|
||||
from catfish.router import run_server
|
||||
from catfish.utils.processes import terminate_processes
|
||||
|
||||
PID_FILE = os.path.join(tempfile.gettempdir(), "catfish.pid")
|
||||
|
||||
|
|
|
@ -4,3 +4,4 @@ include_trailing_comma=True
|
|||
force_grid_wrap=0
|
||||
use_parentheses=True
|
||||
line_length=88
|
||||
not_skip=__init__.py
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
from aiounittest import AsyncTestCase
|
||||
from aiohttp.test_utils import unused_port
|
||||
from click.testing import CliRunner
|
||||
from catfish.__main__ import cli
|
||||
from catfish import worker
|
||||
from catfish.utils.processes import terminate_processes, CURRENT_PROCESS
|
||||
import functools
|
||||
from multiprocessing import Process
|
||||
|
||||
from aiohttp.test_utils import unused_port
|
||||
from aiounittest import AsyncTestCase
|
||||
from click.testing import CliRunner
|
||||
|
||||
from catfish import worker
|
||||
from catfish.__main__ import cli
|
||||
from catfish.utils.processes import CURRENT_PROCESS, terminate_processes
|
||||
|
||||
|
||||
class BaseTestCase(AsyncTestCase):
|
||||
def setUp(self):
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
from tests import BaseWorkerTestCase
|
||||
|
||||
|
||||
class RouterTestCase(BaseWorkerTestCase):
|
||||
def test_thing(self):
|
||||
self.assertTrue(True)
|
Reference in a new issue