tests-fix-1
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user