Beispiel #1
0
 def perform(self):
     payload_class_str = self._payload["class"]
     payload_class = str_to_class(payload_class_str)
     args = self._payload.get("args", None)
     if args:
         return payload_class.perform(*args)
     else:
         return payload_class.perform()
Beispiel #2
0
def test_str_to_class():
    ret = str_to_class('tests.Basic')
    assert ret
    assert ret == Basic
    assert str_to_class('hello.World') == None
Beispiel #3
0
def test_str_to_class():
    ret = str_to_class('tests.Basic')
    assert ret
    assert ret == Basic
    assert str_to_class('hello.World') == None
Beispiel #4
0
def test_str_to_class():
    ret = str_to_class('tests.Basic')
    assert ret
Beispiel #5
0
def test_str_to_class():
    ret = str_to_class("tests.Basic")
    assert ret