MCPcopy
hub / github.com/praw-dev/praw / test_notes__call__

Method test_notes__call__

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

Source from the content-addressed store, hash-verified

252 assert reddit.live.now() is None
253
254 def test_notes__call__(self, reddit):
255 reddit.read_only = False
256 notes = list(
257 reddit.notes(
258 pairs=[
259 (reddit.subreddit("SubTestBot1"), "Watchful1"),
260 ("SubTestBot1", reddit.redditor("watchful12")),
261 ("SubTestBot1", "spez"),
262 ],
263 things=[reddit.submission("jlbw48")],
264 )
265 )
266 assert len(notes) == 4
267 assert notes[0].user.name.lower() == "watchful1"
268 assert notes[1].user.name.lower() == "watchful12"
269 assert notes[2] is None
270
271 def test_notes__things(self, reddit):
272 reddit.read_only = False

Callers

nothing calls this directly

Calls 4

redditorMethod · 0.80
notesMethod · 0.45
subredditMethod · 0.45
submissionMethod · 0.45

Tested by

no test coverage detected