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

Method test_delete_note

tests/integration/models/test_mod_notes.py:36–42  ·  view source on GitHub ↗
(self, reddit)

Source from the content-addressed store, hash-verified

34 assert result_note.note == "test note"
35
36 def test_delete_note(self, reddit):
37 reddit.read_only = False
38 subreddit = reddit.subreddit(pytest.placeholders.test_subreddit)
39 result_note = subreddit.mod.notes.create(note="test note", redditor=self.REDDITOR)
40 subreddit.mod.notes.delete(note_id=result_note.id, redditor=result_note.user)
41 notes = list(subreddit.mod.notes.redditors(self.REDDITOR))
42 assert result_note not in notes
43
44 def test_delete_note__all_notes(self, reddit):
45 reddit.read_only = False

Callers

nothing calls this directly

Calls 4

redditorsMethod · 0.80
subredditMethod · 0.45
createMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected