TestTerminal.receive()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 2
c 2
b 0
f 0
dl 0
loc 3
rs 10
1
from synergine.core.connection.Terminal import Terminal
2
3
4
class TestTerminal(Terminal):
5
    _name = 'tests_test'
6
    receive_callback = None
7
8
    def __init__(self, config, context, synergy_manager):
9
        super().__init__(config, context, synergy_manager)
10
11
    # TODO: inutile non ?
12
    def receive(self, actions_done):
13
        if self.receive_callback:
14
            self.receive_callback(self, actions_done)
15
16
    def get_synergy_object_manager(self):
17
        return self._synergy_manager