File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,18 @@ def client(_mock_database: VuforiaDatabase) -> Iterator[VWS]:
3535 )
3636
3737 yield vws_client
38+
39+
40+ @pytest .fixture ()
41+ def cloud_reco_client (_mock_database : VuforiaDatabase ) -> Iterator [VWS ]:
42+ """
43+ # TODO rename this fixture
44+
45+ Yield a VWS client which connects to a mock.
46+ """
47+ vws_client = VWS (
48+ server_access_key = _mock_database .server_access_key .decode (),
49+ server_secret_key = _mock_database .server_secret_key .decode (),
50+ )
51+
52+ yield vws_client
Original file line number Diff line number Diff line change @@ -34,3 +34,7 @@ def test_query(
3434 # assert result == []
3535
3636# TODO test custom base URL
37+ # TODO test bad credentials
38+ # TODO test no results
39+ # TODO test some results
40+ # TODO do we give an image type? Infer it? What happens if we just always give jpeg?
You can’t perform that action at this time.
0 commit comments