bdd: Handle \n when checking clipboard contents.
This commit is contained in:
parent
23068e9679
commit
dbdedf74c0
@ -354,6 +354,7 @@ def check_open_tabs(quteproc, tabs):
|
||||
def clipboard_contains(qapp, httpbin, what, content):
|
||||
mode = _clipboard_mode(qapp, what)
|
||||
expected = content.replace('(port)', str(httpbin.port))
|
||||
expected = expected.replace('\\n', '\n')
|
||||
|
||||
data = qapp.clipboard().text(mode=mode)
|
||||
assert data == expected
|
||||
|
Loading…
Reference in New Issue
Block a user