-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified: digitalseapi/app/infra/config.py modified: digitalseapi/app/main.py modified: digitalseapi/app/routers/__init__.py modified: digitalseapi/app/routers/documents.py modified: digitalseapi/requirements.txt modified: digitalseapi/tests/conftest.py modified: docker-compose.yml new file: ocrservice/.dockerignore modified: ocrservice/app.py modified: ocrservice/requirements.txt
- Loading branch information
1 parent
b1888d7
commit e76d5d8
Showing
11 changed files
with
114 additions
and
14 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
__pycache__ | ||
venv |
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
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
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 |
---|---|---|
|
@@ -23,3 +23,5 @@ aio-pika==9.3.1 | |
setuptools==69.1.1 | ||
#elastic-apm[fastapi] | ||
jose | ||
passlib | ||
motor==3.3.2 |
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,24 @@ | ||
|
||
import os | ||
|
||
import pytest | ||
from starlette.testclient import TestClient | ||
|
||
from app import main | ||
from app.config import get_settings, Settings | ||
|
||
|
||
def get_settings_override(): | ||
return Settings(testing=1, database_url=os.environ.get("DATABASE_TEST_URL")) | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def test_app(): | ||
# set up | ||
main.app.dependency_overrides[get_settings] = get_settings_override | ||
with TestClient(main.app) as test_client: | ||
|
||
# testing | ||
yield test_client | ||
|
||
# tear down |
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,3 @@ | ||
venv | ||
.dockerignore | ||
Dockerfile |
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ faststream[rabbit] | |
fast_depends | ||
minio | ||
pytesseract | ||
pydantic | ||
pydantic | ||
motor==3.3.2 |