Skip to content

Commit 77b421e

Browse files
committed
Update test_face.py
Removed ProcessRequestConfig.
1 parent 8bcf7ab commit 77b421e

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

tests/test_face.py

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import yk_face as YKF
88
from yk_utils.apis import YoonikApiException
99

10-
from yk_face_api_models import ProcessRequestConfig
1110

1211
BASE_URL = os.getenv('YK_FACE_BASE_URL')
1312
YKF.BaseUrl.set(BASE_URL)
@@ -42,17 +41,8 @@ def loop():
4241

4342

4443
@pytest.mark.parametrize('use_async', [(True,), (False,)])
45-
@pytest.mark.parametrize('configurations', [
46-
[
47-
ProcessRequestConfig(name="config1", value="12490812.523"),
48-
ProcessRequestConfig(name="config1.1", value="stringvalue"),
49-
ProcessRequestConfig(name="config2", bvalue=True),
50-
ProcessRequestConfig(name="config3", bvalue=False),
51-
]
52-
])
5344
def test_face_process_with_valid_image(
5445
use_async: bool,
55-
configurations,
5646
loop: asyncio.AbstractEventLoop
5747
):
5848
"""
@@ -63,10 +53,7 @@ def test_face_process_with_valid_image(
6353
"""
6454
if use_async:
6555
response = loop.run_until_complete(
66-
YKF.face.process_async(
67-
__image_file,
68-
configurations=configurations
69-
)
56+
YKF.face.process_async(__image_file)
7057
)
7158
else:
7259
response = YKF.face.process(__image_file)
@@ -85,17 +72,8 @@ def test_face_process_with_valid_image(
8572

8673

8774
@pytest.mark.parametrize('use_async', [(True,), (False,)])
88-
@pytest.mark.parametrize('configurations', [
89-
[
90-
ProcessRequestConfig(name="config1", value="12490812.523"),
91-
ProcessRequestConfig(name="config1.1", value="stringvalue"),
92-
ProcessRequestConfig(name="config2", bvalue=True),
93-
ProcessRequestConfig(name="config3", bvalue=False),
94-
]
95-
])
9675
def test_face_process_with_invalid_image(
9776
use_async: bool,
98-
configurations,
9977
loop: asyncio.AbstractEventLoop
10078
):
10179
"""
@@ -106,8 +84,7 @@ def test_face_process_with_invalid_image(
10684
"""
10785
with pytest.raises(YoonikApiException) as exception:
10886
if use_async:
109-
loop.run_until_complete(YKF.face.process_async(random_str(),
110-
configurations=configurations))
87+
loop.run_until_complete(YKF.face.process_async(random_str()))
11188
else:
11289
YKF.face.process(random_str())
11390
assert exception.value.status_code == 409

0 commit comments

Comments
 (0)