Avoid randomly parametrized test cases to avoid confusing pytest

This commit is contained in:
Kristóf Tóth 2019-05-26 15:24:28 +02:00
parent 5b79dbff2b
commit 94b248fd89
1 changed files with 6 additions and 4 deletions

View File

@ -92,10 +92,6 @@ def test_stop():
'You ever wonder why we are here?',
'Lorem ipsum dolor sit amet',
'You always have a plan, Dutch!',
token_urlsafe(32),
token_urlsafe(32),
token_urlsafe(32),
token_urlsafe(32)
]
)
def test_io(io_pipes, test_data):
@ -103,6 +99,12 @@ def test_io(io_pipes, test_data):
assert io_pipes.recv().decode() == test_data
def test_io_random(io_pipes):
test_data = token_urlsafe(512)
for _ in range(100):
io_pipes.send_message(test_data.encode())
assert io_pipes.recv().decode() == test_data
@pytest.mark.parametrize(
'test_data_size', [
1024,