diff options
author | Zach Smith <zd@zdsmith.com> | 2018-04-25 21:55:09 -0400 |
---|---|---|
committer | Zach Smith <zd@zdsmith.com> | 2018-04-25 21:55:09 -0400 |
commit | c7c4c24f287207342eb48dd15578867a14efa335 (patch) | |
tree | e37bede08ac2cac0d1e52d3a0660b5485bf5d162 | |
parent | e7c5ba004aae1c065239ea2803a2ed127ff9a54c (diff) | |
download | pycco-c7c4c24f287207342eb48dd15578867a14efa335.tar.gz |
Set size limits to avoid data generation errors
-rw-r--r-- | tests/test_pycco.py | 6 |
1 files 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] |