Skip to content

Commit 58274f6

Browse files
committed
Progress
1 parent 8ae079b commit 58274f6

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/conftest.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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

tests/test_query.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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?

0 commit comments

Comments
 (0)