<reponame>bodik/sner4-web
# This file is part of sner4 project governed by MIT license, see the LICENSE.txt file.
"""
sner agent dummy module
"""

from schema import Schema

from sner.agent.modules import ModuleBase


class AgentModule(ModuleBase):
    """
    testing module implementation

    ## target specification
    target = simple-target
    """

    CONFIG_SCHEMA = Schema({
        'module': 'dummy',
        'args': str
    })

    def run(self, assignment):
        """simply write assignment and return"""

        super().run(assignment)
        return 0

    def terminate(self):
        """nothing to be done for dummy terminate"""

# This file is part of sner4 project governed by MIT license, see the LICENSE.txt file.
"""
sner agent dummy module
"""

from schema import Schema

from sner.agent.modules import ModuleBase


class AgentModule(ModuleBase):
    """
    testing module implementation

    ## target specification
    target = simple-target
    """

    CONFIG_SCHEMA = Schema({
        'module': 'dummy',
        'args': str
    })

    def run(self, assignment):
        """simply write assignment and return"""

        super().run(assignment)
        return 0

    def terminate(self):
        """nothing to be done for dummy terminate"""
# This file is part of sner4 project governed by MIT license, see the LICENSE.txt file. sner agent dummy module testing module implementation      ## target specification     target = simple-target simply write assignment and return nothing to be done for dummy terminate