File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1717
1818@pytest .fixture ()
1919def _mock_database () -> Iterator [VuforiaDatabase ]:
20+ """
21+ Yield a mock ``VuforiaDatabase``.
22+ """
2023 with MockVWS () as mock :
2124 database = VuforiaDatabase ()
2225 mock .add_database (database = database )
@@ -28,22 +31,18 @@ def vws_client(_mock_database: VuforiaDatabase) -> Iterator[VWS]:
2831 """
2932 Yield a VWS client which connects to a mock.
3033 """
31- vws_client = VWS (
34+ yield VWS (
3235 server_access_key = _mock_database .server_access_key ,
3336 server_secret_key = _mock_database .server_secret_key ,
3437 )
3538
36- yield vws_client
37-
3839
3940@pytest .fixture ()
4041def cloud_reco_client (_mock_database : VuforiaDatabase ) -> Iterator [VWS ]:
4142 """
4243 TODO Docstring
4344 """
44- client = CloudRecoService (
45+ yield CloudRecoService (
4546 client_access_key = _mock_database .client_access_key ,
4647 client_secret_key = _mock_database .client_secret_key ,
4748 )
48-
49- yield client
You can’t perform that action at this time.
0 commit comments