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

Method test_bare_badrequest

tests/integration/test_reddit.py:69–80  ·  view source on GitHub ↗
(self, reddit)

Source from the content-addressed store, hash-verified

67 assert str(excinfo.value) == "Bad Request"
68
69 def test_bare_badrequest(self, reddit):
70 data = {
71 "field": "link",
72 "kind": "link",
73 "show_error_list": True,
74 "sr": "AskReddit",
75 "text": "lol",
76 "title": "l",
77 }
78 reddit.read_only = False
79 with pytest.raises(BadRequest):
80 reddit.post("/api/validate_submission_field", data=data)
81
82 def test_info(self, reddit):
83 bases = ["t1_d7ltv", "t3_5dec", "t5_2qk"]

Callers

nothing calls this directly

Calls 1

postMethod · 0.80

Tested by

no test coverage detected