Skip to content

Commit 5443d81

Browse files
committed
Progress towards test for invalid given ID
1 parent f2af017 commit 5443d81

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tests/test_unknown_target.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
"""
2+
Tests for passing invalid target IDs to endpoints which
3+
require a target ID to be given.
4+
"""
5+
6+
from functools import partial
7+
8+
from vws import VWS
9+
10+
11+
class TestInvalidGivenID:
12+
"""
13+
Tests for giving an invalid ID to endpoints which require a target ID to
14+
be given.
15+
"""
16+
17+
def test_invalid_given_id(
18+
self,
19+
client: VWS,
20+
):
21+
get_target_record = partial(client.get_target_record)
22+
23+
funcs = (
24+
get_target_record,
25+
)
26+
27+
for func in funcs:
28+
func(target_id='x')

0 commit comments

Comments
 (0)