Skip to content

Commit 7237f09

Browse files
committed
Remove error test from sharepoint
1 parent 0693704 commit 7237f09

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/test_sharepoint.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
import pytest
3-
from requests.exceptions import HTTPError
43
from requests_mock import Mocker
54
from msdrive import SharePoint
65
from msdrive.constants import BASE_GRAPH_URL
@@ -43,15 +42,6 @@ def test_get_item_data(drive: SharePoint, requests_mock: Mocker):
4342
drive_id="b!1abc", item_path="/Documents/test.csv"
4443
)
4544

46-
requests_mock.get(
47-
f"{BASE_GRAPH_URL}/drives/b!1abc/root:/none.csv",
48-
request_headers=REQUEST_HEADERS,
49-
status_code=404,
50-
)
51-
52-
with pytest.raises(HTTPError):
53-
drive.get_item_data(drive_id="b!1abc", item_path="/none.csv")
54-
5545

5646
def test_list_items_missing_values(drive: SharePoint):
5747
with pytest.raises(ValueError):

0 commit comments

Comments
 (0)