File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 1616
1717
1818@pytest .fixture ()
19- def vws_client () -> Iterator [VWS ]:
19+ def _mock_database () -> Iterator [VuforiaDatabase ]:
2020 """
21- Yield a VWS client which connects to a mock.
21+ Yield a mock ``VuforiaDatabase`` .
2222 """
2323 with MockVWS () as mock :
2424 database = VuforiaDatabase ()
2525 mock .add_database (database = database )
26- yield VWS (
27- server_access_key = database .server_access_key ,
28- server_secret_key = database .server_secret_key ,
29- )
26+ yield database
27+
28+
29+ @pytest .fixture ()
30+ def vws_client (_mock_database : VuforiaDatabase ) -> Iterator [VWS ]:
31+ """
32+ Yield a VWS client which connects to a mock.
33+ """
34+ yield VWS (
35+ server_access_key = _mock_database .server_access_key ,
36+ server_secret_key = _mock_database .server_secret_key ,
37+ )
You can’t perform that action at this time.
0 commit comments