Skip to content

Commit

Permalink
🔥 removed connection test
Browse files Browse the repository at this point in the history
  • Loading branch information
angelika233 committed Oct 26, 2023
1 parent 61dc36f commit fa9b814
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/integration/test_sharepoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,26 +168,6 @@ def test_get_data_types(file_name):
assert "String" in dtypes


# testing get_connection function passing invalid credentials and raises AuthenticationContext error.
def test_get_connection():
site_url = "https://velux.sharepoint.com/"
credentials = {
"SHAREPOINT_CERT": {
"TENANT": "xxx",
"CLIENT_ID": "123",
"SCOPES": "https://velux.sharepoint.com/",
"THUMBPRINT": "xyz",
"PRIVATE_KEY": "private",
}
}

spl = SharepointList(credentials=credentials)
with pytest.raises(
AttributeError, match="'SharepointList' object has no attribute 'ctx'"
):
spl.get_connection(site_url=site_url)


@pytest.fixture(scope="session")
def sharepoint_list():
"""
Expand Down

0 comments on commit fa9b814

Please sign in to comment.