Move router to its own app

This commit is contained in:
Jake Howard 2018-12-12 22:34:51 +00:00
parent c2c5f955e8
commit 9168ac32de
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 15 additions and 17 deletions

View file

@ -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")

View file

@ -4,3 +4,4 @@ include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=88
not_skip=__init__.py

View file

@ -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):

View file

@ -1,6 +0,0 @@
from tests import BaseWorkerTestCase
class RouterTestCase(BaseWorkerTestCase):
def test_thing(self):
self.assertTrue(True)