Skip to content

test: add tests for EventHub deferred bindings #1673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 23 commits into
base: dev
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def eventhub_output(req: func.HttpRequest, event: func.Out[str]):
def eventhub_trigger(event: func.EventHubEvent) -> bytes:
return event.get_body()


# Retrieve the event data from storage blob and return it as Http response
@app.function_name(name="get_eventhub_triggered")
@app.route(route="get_eventhub_triggered")
Expand Down
20 changes: 10 additions & 10 deletions tests/emulator_tests/test_eventhub_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,17 @@ def test_eventhub_trigger_with_metadata(self):
self.assertIsNotNone(sys_props['Offset'])


class TestEventHubFunctionsStein(TestEventHubFunctions):
# class TestEventHubFunctionsStein(TestEventHubFunctions):

@classmethod
def get_script_dir(cls):
return testutils.EMULATOR_TESTS_FOLDER / 'eventhub_functions' / \
'eventhub_functions_stein'
# @classmethod
# def get_script_dir(cls):
# return testutils.EMULATOR_TESTS_FOLDER / 'eventhub_functions' / \
# 'eventhub_functions_stein'


class TestEventHubFunctionsSteinGeneric(TestEventHubFunctions):
# class TestEventHubFunctionsSteinGeneric(TestEventHubFunctions):

@classmethod
def get_script_dir(cls):
return testutils.EMULATOR_TESTS_FOLDER / 'eventhub_functions' / \
'eventhub_functions_stein' / 'generic'
# @classmethod
# def get_script_dir(cls):
# return testutils.EMULATOR_TESTS_FOLDER / 'eventhub_functions' / \
# 'eventhub_functions_stein' / 'generic'
Loading