Skip to content
Snippets Groups Projects
Commit 954f3448 authored by Jedrzej Rybicki's avatar Jedrzej Rybicki
Browse files

oid

parent 04644762
No related branches found
No related tags found
No related merge requests found
Pipeline #78280 failed
......@@ -44,7 +44,7 @@ class B2ShareOperator(BaseOperator):
def execute(self, **kwargs):
hook = HttpHook(http_conn_id=self.conn_id, method='GET')
print(kwargs)
params = kwargs['context']['params']
oid = params['oid']
hrespo = hook.run(endpoint=f"/api/records/{oid}")
......
......@@ -20,7 +20,7 @@ class B2ShareOperatorTest(unittest.TestCase):
def test_execute_no_trigger(self):
self.ti.run(ignore_ti_state=False)
self.ti.run(ignore_ti_state=False, context={'params': {'oid': 111}})
print(self.ti.state)
self.assertEqual(State.SUCCESS, self.ti.state)
# Assert something related to tasks results
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment