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

Function test_mark_good

tests/unit/sessions/test_session.py:52–57  ·  view source on GitHub ↗

Test the mark_good method increases usage count and potentially decreases error score.

(session: Session)

Source from the content-addressed store, hash-verified

50
51
52def test_mark_good(session: Session) -> None:
53 """Test the mark_good method increases usage count and potentially decreases error score."""
54 initial_usage_count = session.usage_count
55 session.mark_good()
56 assert session.usage_count == initial_usage_count + 1
57 assert session.error_score == 0
58
59
60def test_mark_bad(session: Session) -> None:

Callers

nothing calls this directly

Calls 1

mark_goodMethod · 0.80

Tested by

no test coverage detected