-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from fastapi import APIRouter | ||
|
||
router = APIRouter(prefix='/sony_ci') | ||
|
||
|
||
@router.post("/sync", tags=["sony ci", "sync"]) | ||
async def sony_ci_sync(): | ||
print('\n\nHERE!!!\n\n') | ||
return {'foo': 'bar'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import pytest | ||
from httpx import AsyncClient | ||
|
||
from chowda.app import app | ||
|
||
|
||
@pytest.mark.anyio | ||
async def test_sony_ci_sync(): | ||
async with AsyncClient(app=app, base_url='http://test') as ac: | ||
response = await ac.post('/sony_ci/sync') | ||
assert response.status_code == 200 | ||
assert response.json() == {'foo': 'bar'} |