File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -41,13 +41,11 @@ def client(_mock_database: VuforiaDatabase) -> Iterator[VWS]:
4141@pytest .fixture ()
4242def 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments