Coverage for src/tests/test_app.py: 100%

13 statements  

« prev     ^ index     » next       coverage.py v7.5.0, created at 2024-12-20 18:03 +0000

1import pytest 

2 

3from couchers.server import create_main_server, create_media_server 

4from tests.test_fixtures import testconfig # noqa 

5 

6 

7@pytest.fixture(autouse=True) 

8def _(testconfig): 

9 pass 

10 

11 

12def test_create_servers(): 

13 server = create_main_server(port=1751) 

14 media_server = create_media_server(port=1753) 

15 server.start() 

16 media_server.start() 

17 server.stop(None).wait() 

18 media_server.stop(None).wait()