From c7c4c24f287207342eb48dd15578867a14efa335 Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Wed, 25 Apr 2018 21:55:09 -0400 Subject: Set size limits to avoid data generation errors --- tests/test_pycco.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_pycco.py b/tests/test_pycco.py index f5ab936..53fa74f 100644 --- a/tests/test_pycco.py +++ b/tests/test_pycco.py @@ -164,11 +164,11 @@ def test_process(preserve_paths, index, choice): language=lang_name) -one_or_more_chars = text(min_size=1) +one_or_more_chars = text(min_size=1, max_size=255) paths = lists(one_or_more_chars, min_size=1, max_size=30) @given( - lists(paths, min_size=1), - lists(one_or_more_chars, min_size=1) + lists(paths, min_size=1, max_size=255), + lists(one_or_more_chars, min_size=1, max_size=255) ) def test_generate_index(path_lists, outdir_list): file_paths = [os.path.join(*path_list) for path_list in path_lists] -- cgit v1.2.1