Skip to content

Commit 132d029

Browse files
Merge branch 'psl-backend-unit-test' of https://github.com/microsoft/Modernize-your-code-solution-accelerator into psl-backend-unit-test
2 parents 70a1ec2 + 3869570 commit 132d029

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

src/tests/backend/common/services/batch_service_test.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -263,25 +263,6 @@ async def test_upload_file_to_batch_invalid_storage():
263263
assert str(exc_info.value.__cause__) == "Storage service not initialized"
264264

265265

266-
@pytest.mark.asyncio
267-
async def test_delete_batch_success(mock_service):
268-
batch_id = uuid4()
269-
user_id = "test_user"
270-
mock_service.database.get_batch = AsyncMock(return_value={"id": str(batch_id)})
271-
mock_service.database.delete_batch = AsyncMock()
272-
result = await mock_service.delete_batch(batch_id, user_id)
273-
assert result["message"] == "Batch deleted successfully"
274-
assert result["batch_id"] == str(batch_id)
275-
276-
277-
def test_is_valid_uuid_valid(mock_service):
278-
assert mock_service.is_valid_uuid(str(uuid4())) is True
279-
280-
281-
def test_is_valid_uuid_invalid(mock_service):
282-
assert mock_service.is_valid_uuid("not-a-uuid") is False
283-
284-
285266
def test_generate_file_path_only_filename():
286267
service = BatchService()
287268
path = service.generate_file_path(None, None, None, "weird@name!.txt")

0 commit comments

Comments
 (0)