Skip to content
This repository was archived by the owner on Jun 7, 2025. It is now read-only.

Commit 73a60b9

Browse files
committed
Merge commit '5fc6c9ce457ea43cddfcec45b9b96a6161490531' into fix-yihao-sprint15
2 parents 9b6110f + 5fc6c9c commit 73a60b9

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ pytest-asyncio==0.26.0
1818
pytest-cov==6.1.1
1919
httpx==0.28.1
2020
coverage==7.8.0
21-
coveralls==4.0.1
21+
coveralls==4.0.1
22+
regex==2024.11.6

tests/routes/test_document.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,6 @@ async def test__unit_test__get_documents(fake_document_repo):
7070
result = await get_documents(current_user, fake_document_repo)
7171
assert result == "documents"
7272

73-
@pytest.mark.asyncio
74-
async def test__unit_test__get_documents_erro(fake_document_repo, monkeypatch):
75-
async def mock_get_documents():
76-
return None
77-
monkeypatch.setattr(fake_document_repo, "get_documents", mock_get_documents)
78-
with pytest.raises(HTTPException) as excinfo:
79-
await get_documents(current_user, fake_document_repo)
80-
assert excinfo.value.status_code == 404
8173

8274
class User:
8375
def __init__(self):

0 commit comments

Comments
 (0)