tests-fix-1

This commit is contained in:
2025-08-27 02:45:15 +03:00
parent 90aece7a60
commit eef2ae1d5e
9 changed files with 413 additions and 115 deletions

View File

@@ -112,8 +112,8 @@ async def test_create_shout(db_session, test_author):
# Проверяем результат
assert "error" not in result or result["error"] is None
assert result["draft"].title == "Test Shout"
assert result["draft"].body == "This is a test shout"
assert result["draft"]["title"] == "Test Shout"
assert result["draft"]["body"] == "This is a test shout"
except Exception as e:
# На CI могут быть проблемы с моком, пропускаем тест
pytest.skip(f"Тест пропущен на CI: {e}")