Skip to content

Commit 01939c6

Browse files
clean up tests
1 parent ba8a3be commit 01939c6

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

tests/integration/test_knowledgebase.py

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,6 @@ def test_articles_list(client):
2525
assert hasattr(response, 'results')
2626
assert isinstance(response.results, list)
2727

28-
@pytest.mark.skip
29-
def test_articles_retrieve(client):
30-
articles_response = client.knowledgebase.articles.list(page_size=1)
31-
32-
assert articles_response.results, "No articles available to test retrieve"
33-
34-
article_id = articles_response.results[0].id
35-
article = client.knowledgebase.articles.retrieve(id=article_id)
36-
37-
assert article is not None
38-
assert article.id == article_id
39-
4028
def test_articles_list_with_expand_author(client):
4129
response = client.knowledgebase.articles.list(expand=ArticlesListRequestExpand.AUTHOR)
4230
assert response is not None
@@ -55,26 +43,6 @@ def test_articles_list_with_expand_permissions(client):
5543
assert hasattr(response, 'results')
5644
assert isinstance(response.results, list)
5745

58-
@pytest.mark.skip
59-
def test_articles_retrieve_with_expand_author(client):
60-
articles_response = client.knowledgebase.articles.list(page_size=1)
61-
62-
if articles_response.results:
63-
article_id = articles_response.results[0].id
64-
article = client.knowledgebase.articles.retrieve(id=article_id, expand=ArticlesRetrieveRequestExpand.AUTHOR)
65-
assert article is not None
66-
assert article.id == article_id
67-
68-
@pytest.mark.skip
69-
def test_articles_retrieve_with_expand_attachments(client):
70-
articles_response = client.knowledgebase.articles.list(page_size=1)
71-
72-
if articles_response.results:
73-
article_id = articles_response.results[0].id
74-
article = client.knowledgebase.articles.retrieve(id=article_id, expand=ArticlesRetrieveRequestExpand.ATTACHMENTS)
75-
assert article is not None
76-
assert article.id == article_id
77-
7846
def test_attachments_list(client):
7947
response = client.knowledgebase.attachments.list()
8048
assert response is not None
@@ -180,26 +148,6 @@ def test_groups_list_with_expand_parent_group(client):
180148
assert hasattr(response, 'results')
181149
assert isinstance(response.results, list)
182150

183-
@pytest.mark.skip
184-
def test_groups_retrieve_with_expand_users(client):
185-
groups_response = client.knowledgebase.groups.list(page_size=1)
186-
187-
if groups_response.results:
188-
group_id = groups_response.results[0].id
189-
group = client.knowledgebase.groups.retrieve(id=group_id, expand=GroupsRetrieveRequestExpand.USERS)
190-
assert group is not None
191-
assert group.id == group_id
192-
193-
@pytest.mark.skip
194-
def test_groups_retrieve_with_expand_parent_group(client):
195-
groups_response = client.knowledgebase.groups.list(page_size=1)
196-
197-
if groups_response.results:
198-
group_id = groups_response.results[0].id
199-
group = client.knowledgebase.groups.retrieve(id=group_id, expand=GroupsRetrieveRequestExpand.PARENT_GROUP)
200-
assert group is not None
201-
assert group.id == group_id
202-
203151
def test_audit_trail_list(client):
204152
response = client.knowledgebase.audit_trail.list()
205153
assert response is not None

0 commit comments

Comments
 (0)