chg: test: shorten time for test_browse_by_index
This commit is contained in:
parent
cf3e68e3ca
commit
1713b8372d
@ -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)
|
||||
|
1255
tests/vcr_cassettes/test_browse_by_index.yaml
Normal file
1255
tests/vcr_cassettes/test_browse_by_index.yaml
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user