Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
Whitev2 committed Mar 17, 2023
1 parent d0a1841 commit 857cc00
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,21 @@ docker-compose build
docker-compose up
```

2. Запустить тесты
3. Создать миграции:
```sh
docker-compose exec backend_api alembic revision --autogenerate -m "init"
```
4. Обновление базы данных:
```sh
docker-compose exec backend_api alembic upgrade head
```

5. Запустить тесты

<hr/>

## Информация:

- Модели баз данных создаются вместе с сборкой проекта в starter.sh
- В тестах был дабавлен параметр hash - его имитирует uuid
- Транзакции привязыватся к пользователю по uid
- Был исправлен url в тестах assert_balance
Expand Down
2 changes: 0 additions & 2 deletions app/starter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
# turn on bash's job control
set -m

alembic revision --autogenerate -m "init"
alembic upgrade head
# API
python3 __main__.py

0 comments on commit 857cc00

Please sign in to comment.