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 os
|
||||||
import tempfile
|
import tempfile
|
||||||
import psutil
|
import time
|
||||||
from catfish.utils.processes import terminate_processes
|
|
||||||
import asyncio
|
|
||||||
from .router import run_server
|
|
||||||
|
|
||||||
|
import psutil
|
||||||
|
|
||||||
|
from catfish.router import run_server
|
||||||
|
from catfish.utils.processes import terminate_processes
|
||||||
|
|
||||||
PID_FILE = os.path.join(tempfile.gettempdir(), "catfish.pid")
|
PID_FILE = os.path.join(tempfile.gettempdir(), "catfish.pid")
|
||||||
|
|
||||||
|
|
|
@ -4,3 +4,4 @@ include_trailing_comma=True
|
||||||
force_grid_wrap=0
|
force_grid_wrap=0
|
||||||
use_parentheses=True
|
use_parentheses=True
|
||||||
line_length=88
|
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
|
import functools
|
||||||
from multiprocessing import Process
|
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):
|
class BaseTestCase(AsyncTestCase):
|
||||||
def setUp(self):
|
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