bdd: Fix clipboard_contains_multiline
This commit is contained in:
parent
59ec5fa947
commit
165504c1f2
@ -419,7 +419,7 @@ def clipboard_contains(quteproc, httpbin, what, content):
|
||||
|
||||
@bdd.then(bdd.parsers.parse('the clipboard should contain:\n{content}'))
|
||||
def clipboard_contains_multiline(quteproc, httpbin, content):
|
||||
expected = textwrap.dedent(content).replace('(port)', httpbin.port)
|
||||
expected = textwrap.dedent(content).replace('(port)', str(httpbin.port))
|
||||
quteproc.wait_for(message='Setting fake clipboard: {}'.format(
|
||||
json.dumps(expected)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user