Final docstring and testing updates based on code review
This commit is contained in:
parent
46f3d21632
commit
9a92fd478a
2 changed files with 48 additions and 24 deletions
|
|
@ -226,7 +226,12 @@ def test_retrieval_of_captures(start):
|
|||
assert _get_capture_index_by_id(captures, buffer_id) == i
|
||||
assert _get_capture_by_id(captures, buffer_id) is capture
|
||||
|
||||
# Check errors are raised when supplying ids that aren't int the list
|
||||
with pytest.raises(ValueError):
|
||||
_get_capture_index_by_id(captures, start - 1)
|
||||
with pytest.raises(ValueError):
|
||||
_get_capture_index_by_id(captures, start + 21)
|
||||
with pytest.raises(ValueError):
|
||||
_get_capture_by_id(captures, start - 1)
|
||||
with pytest.raises(ValueError):
|
||||
_get_capture_by_id(captures, start + 21)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue