13 lines
365 B
Python
13 lines
365 B
Python
from trigger import Trigger
|
|
from config import Config
|
|
import random
|
|
|
|
class TestTrigger1(Trigger):
|
|
def __init__(self, _config: Config) -> None:
|
|
super().__init__(_config)
|
|
|
|
def run(self) -> None:
|
|
choices = [False, True]
|
|
self.log.info("run check code of %s", self.__class__.__name__)
|
|
self.active = random.choice(choices)
|