Avoid randomly parametrized test cases to avoid confusing pytest
This commit is contained in:
parent
5b79dbff2b
commit
94b248fd89
@ -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,
|
Loading…
Reference in New Issue
Block a user