(self, reddit)
| 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"] |