Skip to content

Fix test item#140

Open
Georgon wants to merge 6 commits intomainfrom
fix-test-item
Open

Fix test item#140
Georgon wants to merge 6 commits intomainfrom
fix-test-item

Conversation

@Georgon
Copy link

@Georgon Georgon commented Mar 14, 2026

Fix test_item and test_rental_session:

Все тесты работают.
Для test_item пофикшен тест test_delete_item.

В conftest.py:
Добавил новые фикстуры, необходимые для новых тестов, дабы в test_rental_session.py не было прямого обращения к БД. Также переписаны некоторые уже существующие фикстуры. Их изменения не влияют на другие файлы.

В test_rental_session.py:
Переписал уже существующие тесты, проверив их логику и работоспособность. Дописал новые. Также для ручки patch("/{session_id}") update_rental_session написал два теста на проверку прав для обычного пользователя и админа.

@Georgon Georgon requested a review from petrCher March 14, 2026 07:32
@Georgon Georgon self-assigned this Mar 14, 2026
@github-actions
Copy link

💩 Code linting failed, use black and isort to fix it.

@github-actions
Copy link

Summary

Tests Skipped Failures Errors Time
133 0 💤 0 ❌ 0 🔥 15.791s ⏱️

@github-actions
Copy link

💩 Code linting failed, use black and isort to fix it.

@github-actions
Copy link

💩 Code linting failed, use black and isort to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant