File: helpers.py

package info (click to toggle)
ruby-spamcheck 1.10.1-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 668 kB
  • sloc: python: 1,261; ruby: 484; makefile: 54; sh: 13
file content (14 lines) | stat: -rw-r--r-- 271 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class MockContext:
    def __init__(self):
        self.correlation_id = "test"


class MockML:
    def __init__(self, score):
        self._score = score

    def score(self, args):
        return self._score

    def set_score(self, score):
        self._score = score