MCPcopy Create free account
hub / github.com/apify/crawlee-python / test_mark_bad

Function test_mark_bad

tests/unit/sessions/test_session.py:60–64  ·  view source on GitHub ↗

Test the mark_bad method affects the session's error score and usage.

(session: Session)

Source from the content-addressed store, hash-verified

58
59
60def test_mark_bad(session: Session) -> None:
61 """Test the mark_bad method affects the session's error score and usage."""
62 initial_error_score = session.error_score
63 session.mark_bad()
64 assert session.error_score == initial_error_score + 1
65
66
67def test_multiple_marks(session: Session) -> None:

Callers

nothing calls this directly

Calls 1

mark_badMethod · 0.80

Tested by

no test coverage detected