Skip to content

Commit 265d982

Browse files
committed
Make another helper private
1 parent a72b245 commit 265d982

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/mock_vws/test_query.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ def test_valid_works(
827827
A maximum of ``max_num_results`` results are returned.
828828
"""
829829
image_content = high_quality_image.getvalue()
830-
add_and_wait_for_targets(
830+
_add_and_wait_for_targets(
831831
image=high_quality_image,
832832
vws_client=vws_client,
833833
num_targets=3,
@@ -922,7 +922,8 @@ def test_invalid_type(
922922
)
923923

924924

925-
def add_and_wait_for_targets(
925+
def _add_and_wait_for_targets(
926+
*,
926927
image: io.BytesIO,
927928
vws_client: VWS,
928929
num_targets: int,
@@ -960,7 +961,7 @@ def test_default(
960961
"""
961962
The default ``include_target_data`` is 'top'.
962963
"""
963-
add_and_wait_for_targets(
964+
_add_and_wait_for_targets(
964965
image=high_quality_image,
965966
vws_client=vws_client,
966967
num_targets=2,
@@ -990,7 +991,7 @@ def test_top(
990991
When ``include_target_data`` is set to "top" (case insensitive), only
991992
the first result includes target data.
992993
"""
993-
add_and_wait_for_targets(
994+
_add_and_wait_for_targets(
994995
image=high_quality_image,
995996
vws_client=vws_client,
996997
num_targets=2,
@@ -1021,7 +1022,7 @@ def test_none(
10211022
When ``include_target_data`` is set to "none" (case insensitive), no
10221023
results include target data.
10231024
"""
1024-
add_and_wait_for_targets(
1025+
_add_and_wait_for_targets(
10251026
image=high_quality_image,
10261027
vws_client=vws_client,
10271028
num_targets=2,
@@ -1052,7 +1053,7 @@ def test_all(
10521053
When ``include_target_data`` is set to "all" (case insensitive), all
10531054
results include target data.
10541055
"""
1055-
add_and_wait_for_targets(
1056+
_add_and_wait_for_targets(
10561057
image=high_quality_image,
10571058
vws_client=vws_client,
10581059
num_targets=2,

0 commit comments

Comments
 (0)