(
cls, rover_sign: RoverSign, tasks: Optional[Iterable[str]] = None
)
| 26 | |
| 27 | @classmethod |
| 28 | def bbs_sign_complete( |
| 29 | cls, rover_sign: RoverSign, tasks: Optional[Iterable[str]] = None |
| 30 | ): |
| 31 | task_set = set(tasks) if tasks is not None else { |
| 32 | "bbs_sign", |
| 33 | "bbs_detail", |
| 34 | "bbs_like", |
| 35 | "bbs_share", |
| 36 | } |
| 37 | |
| 38 | if "bbs_sign" in task_set and cls.BBS_SIGN != rover_sign.bbs_sign: |
| 39 | return False |
| 40 | if "bbs_detail" in task_set and cls.BBS_DETAIL != rover_sign.bbs_detail: |
| 41 | return False |
| 42 | if "bbs_like" in task_set and cls.BBS_LIKE != rover_sign.bbs_like: |
| 43 | return False |
| 44 | if "bbs_share" in task_set and cls.BBS_SHARE != rover_sign.bbs_share: |
| 45 | return False |
| 46 | |
| 47 | return True |
no outgoing calls
no test coverage detected