

def build_tests():
    ats = inject(AdventuresTests)
    test = (lambda self: _test_request_returns(self, 'post', ('/%s/1/execute' % self._pluralize(self.base_object)), {
        
    }, 400))
    test.__name__ = 'test_adventure_execute_no_node_returns_400'
    setattr(ats, test.__name__, test)
    test = (lambda self: _test_seed_data_request_returns(self, 'post', ('/%s/1/execute' % self._pluralize(self.base_object)), {
        'node': 9999999,
    }, 404, {
        self.base_object: 1,
    }))
    test.__name__ = 'test_adventure_execute_non_existant_node_returns_404'
    setattr(ats, test.__name__, test)
    test = (lambda self: _test_seed_data_request_returns(self, 'post', ('/%s/999999/execute' % self._pluralize(self.base_object)), {
        'node': 1,
    }, 404, {
        'node': 1,
    }))
    test.__name__ = 'test_adventure_execute_non_existant_adventure_returns_404'
    setattr(ats, test.__name__, test)
    return ats

dataset/ETHPy150Open rcbops/opencenter/tests/test_adventures.py build_tests/original