Skip to content

Commit

Permalink
Fix asyncio
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri committed Jun 3, 2024
1 parent 61884bd commit 8227a2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ run-worker:
source ./venv/bin/activate && python -m aciniformes_backend worker --logger-config ./logging_dev.conf

configure: venv
source ./venv/bin/activate && pip install -r requirements.dev.txt -r requirements.txt
source ./venv/bin/activate && pip install -U -r requirements.dev.txt -r requirements.txt

venv:
python3.11 -m venv venv
Expand Down
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ httpx
isort
pytest
pytest_mock
pytest-asyncio==0.21.1
pytest-asyncio
pytest-cov
requests
2 changes: 1 addition & 1 deletion tests/backend/service/test_fetcher_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def fetcher_schema():

@pytest.fixture()
def db_fetcher(dbsession, fetcher_schema):
q = sqlalchemy.insert(Fetcher).values(**fetcher_schema.dict(exclude_unset=True)).returning(Fetcher)
q = sqlalchemy.insert(Fetcher).values(**fetcher_schema.model_dump(exclude_unset=True)).returning(Fetcher)
fetcher = dbsession.scalar(q)
dbsession.flush()
yield fetcher
Expand Down

0 comments on commit 8227a2c

Please sign in to comment.