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

View file

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

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

View file

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