Skip to content

Commit 678a9cb

Browse files
committed
Add GET test for include=None
1 parent 163db09 commit 678a9cb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/posit/connect/test_content.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,23 @@ def test_get_with_include_list(self):
405405
# assert
406406
assert mock_get.call_count == 1
407407

408+
@responses.activate
409+
def test_get_with_include_none(self):
410+
guid = "f2f37341-e21d-3d80-c698-a935ad614066"
411+
mock_get = responses.get(
412+
f"https://connect.example/__api__/v1/content/{guid}",
413+
json=load_mock(f"v1/content/{guid}.json"),
414+
match=[matchers.query_param_matcher({})],
415+
)
416+
417+
con = Client("https://connect.example", "12345")
418+
content = con.content.get(guid, include=None)
419+
assert content["guid"] == guid
420+
421+
# assert
422+
assert mock_get.call_count == 1
423+
424+
408425
class TestContentsCount:
409426
@responses.activate
410427
def test(self):

0 commit comments

Comments
 (0)