feat: improve codequality and CI (#25)
* feat: improve codequality and CI
This commit is contained in:
parent
28121184c3
commit
cc6752003a
28 changed files with 3114 additions and 292 deletions
17
tests/test_init.py
Normal file
17
tests/test_init.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import pytest
|
||||
from fastapi import APIRouter
|
||||
|
||||
from .. import nostrrelay_ext, nostrrelay_start, nostrrelay_stop
|
||||
|
||||
|
||||
# just import router and add it to a test router
|
||||
@pytest.mark.asyncio
|
||||
async def test_router():
|
||||
router = APIRouter()
|
||||
router.include_router(nostrrelay_ext)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_start_and_stop():
|
||||
nostrrelay_start()
|
||||
nostrrelay_stop()
|
||||
Loading…
Add table
Add a link
Reference in a new issue