Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Dec 13, 2024
1 parent d3bef99 commit 77bd3c9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions backend-features/steps/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
from lib.testbed import run_testbed


def service_env(context, disable_nats=False):
assert hasattr(context, 'nats_config'), 'NATS configuration is required for this step'
assert isinstance(context.nats_config, dict), 'NATS configuration must be a dictionary'

env = context.nats_config.copy()
env['X_DISABLE_NATS'] = '1' if disable_nats else '0'
return env


@when(u'I start the service')
def start_service(context):
run_testbed(context)
Expand Down Expand Up @@ -44,7 +35,6 @@ def assert_service_connected(context):
assert 'result' in context, 'Service must be started before checking connection'
assert 'nats_connected' in context.result, 'Service must be started before checking connection'
assert context.result['nats_connected'], 'Service must be connected to NATS'
# raise StepNotImplementedError()


@then(u'the service should fail to start')
Expand Down

0 comments on commit 77bd3c9

Please sign in to comment.