From 926444c3ee1257d834c2966d8484a9b0a6c9bae7 Mon Sep 17 00:00:00 2001 From: Jakub Miazek Date: Thu, 23 Nov 2023 19:41:41 +0100 Subject: [PATCH] unlock tests --- tests/test_vegs_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_vegs_api.py b/tests/test_vegs_api.py index f7bae93..d773f13 100644 --- a/tests/test_vegs_api.py +++ b/tests/test_vegs_api.py @@ -1,4 +1,5 @@ import pytest +from bson import ObjectId # from bson import ObjectId from fastapi import status from httpx import AsyncClient @@ -21,4 +22,4 @@ async def test_add_document(client: AsyncClient, payload: dict, status_code: int response = await client.post("/api/v1/vegs", json=payload) # Assert HTTP code and if received document id is valid assert response.status_code == status_code - # assert ObjectId.is_valid(response.json()["id"]) + assert ObjectId.is_valid(response.json()["id"])