Skip to content

Commit 7ff6e96

Browse files
committed
Progress
1 parent f7fc79a commit 7ff6e96

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

src/vws/query.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def __init__(
99
self,
1010
client_access_key: str,
1111
client_secret_key: str,
12+
# TODO - instead use vwq URL
1213
base_vws_url: str = 'https://vws.vuforia.com',
1314
) -> None:
1415
"""
@@ -26,6 +27,6 @@ def query(
2627
image: io.BytesIO,
2728
) -> str:
2829
"""
29-
Add a target to a Vuforia Web Services database.
30-
30+
TODO docstring
3131
"""
32+
pass

tests/conftest.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ def client(_mock_database: VuforiaDatabase) -> Iterator[VWS]:
4141
@pytest.fixture()
4242
def cloud_reco_client(_mock_database: VuforiaDatabase) -> Iterator[VWS]:
4343
"""
44-
# TODO rename this fixture
45-
46-
Yield a VWS client which connects to a mock.
44+
TODO Docstring
4745
"""
48-
vws_client = VWS(
49-
server_access_key=_mock_database.server_access_key,
50-
server_secret_key=_mock_database.server_secret_key,
46+
client = CloudRecoService(
47+
client_access_key=_mock_database.client_access_key,
48+
client_secret_key=_mock_database.client_secret_key,
5149
)
5250

53-
yield vws_client
51+
yield client

tests/test_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_query(
3131
client_secret_key='bar',
3232
)
3333
result = cloud_reco_client.query(image=high_quality_image)
34-
# assert result == []
34+
assert result == []
3535

3636
# TODO test custom base URL
3737
# TODO test bad credentials

0 commit comments

Comments
 (0)