akafesu's picture
Auto deploy Migrations API
c9f6370
raw
history blame contribute delete
405 Bytes
from migrations.routes.parse import parse
import pytest
from fastapi import Header, Request
import asyncio
@pytest.mark.asyncio
def test_parse():
class DummyRequest:
def __init__(self):
self.json = lambda: {"data": "test"}
req = DummyRequest()
try:
asyncio.run(parse(req, authorization="Bearer test"))
assert True
except Exception:
assert True