chg: test: shorten time for test_browse_by_index

This commit is contained in:
rachmadaniHaryono 2018-10-29 22:20:24 +08:00
parent cf3e68e3ca
commit 1713b8372d
2 changed files with 1257 additions and 0 deletions

View File

@ -1233,6 +1233,7 @@ def test_edit_update_rec_with_invalid_input(get_system_editor_retval, index, exp
assert res == exp_res
@vcr.use_cassette('tests/vcr_cassettes/test_browse_by_index.yaml')
@given(
low=st.integers(min_value=-2, max_value=3),
high=st.integers(min_value=-2, max_value=3),
@ -1241,6 +1242,7 @@ def test_edit_update_rec_with_invalid_input(get_system_editor_retval, index, exp
empty_database=st.booleans(),
)
@example(low=0, high=0, index=0, is_range=False, empty_database=True)
@settings(max_examples=2)
def test_browse_by_index(low, high, index, is_range, empty_database):
"""test method."""
n_low, n_high = (high, low) if low > high else (low, high)

File diff suppressed because it is too large Load Diff