MCPcopy Index your code
hub / github.com/praw-dev/praw / test_items

Method test_items

tests/unit/test_exceptions.py:101–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99 assert issubclass(RedditAPIException, PRAWException)
100
101 def test_items(self):
102 container = RedditAPIException([
103 ["BAD_SOMETHING", "invalid something", "some_field"],
104 RedditErrorItem("BAD_SOMETHING", field="some_field", message="invalid something"),
105 ])
106 for exception in container.items:
107 assert isinstance(exception, RedditErrorItem)
108
109
110class TestRedditErrorItem:

Callers

nothing calls this directly

Calls 2

RedditAPIExceptionClass · 0.90
RedditErrorItemClass · 0.90

Tested by

no test coverage detected