We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0377c2 commit 2167dbfCopy full SHA for 2167dbf
features/steps/base.py
@@ -24,17 +24,10 @@ def impl(ctx):
24
@step('I execute the Python commands')
25
def impl(ctx):
26
assert_true(ctx.text)
27
- assert_false(ctx.mock_smtp.sendmail.called)
28
env = globals().copy()
29
env['client'] = ctx.client
30
env['ctx'] = ctx
31
exec ctx.text in env
32
- if ctx.mock_smtp.sendmail.called:
33
- # This phrase is used for migration: we don't want to verify
34
- # e-mail notifications
35
- for (args, _) in ctx.mock_smtp.sendmail.call_args_list:
36
- puts(u'Mail from "%s" to "%s"' % (args[0], u','.join(args[1])))
37
- ctx.mock_smtp.reset_mock()
38
39
40
@step('I execute the SQL commands')
0 commit comments