summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Smith <zd@zdsmith.com>2018-04-25 21:55:09 -0400
committerZach Smith <zd@zdsmith.com>2018-04-25 21:55:09 -0400
commitc7c4c24f287207342eb48dd15578867a14efa335 (patch)
treee37bede08ac2cac0d1e52d3a0660b5485bf5d162
parente7c5ba004aae1c065239ea2803a2ed127ff9a54c (diff)
downloadpycco-c7c4c24f287207342eb48dd15578867a14efa335.tar.gz
Set size limits to avoid data generation errors
-rw-r--r--tests/test_pycco.py6
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]