generalize remotelog to "remote" and offer remote.iter_output method

This commit is contained in:
holger krekel
2023-10-16 20:02:08 +02:00
parent 334f86f56f
commit ecdaf60e11
3 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
def test_remotelog(remotelog, imap_or_smtp):
lineproducer = remotelog.iter(imap_or_smtp.logcmd)
def test_remote(remote, imap_or_smtp):
lineproducer = remote.iter_output(imap_or_smtp.logcmd)
imap_or_smtp.connect()
assert imap_or_smtp.name in next(lineproducer)