File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,19 @@ To write unit tests for code which uses this library, without using your Vuforia
6464
6565 pip3 install vws-python-mock
6666
67+ .. testsetup ::
68+
69+ import pathlib
70+ import shutil
71+
72+ import vws_test_fixtures
73+
74+ # We rely on implementation details of the fixtures package.
75+ image = pathlib.Path(vws_test_fixtures.__path__[0]) / 'high_quality_image.jpg'
76+ assert image.exists(), image.resolve()
77+ new_image = pathlib.Path('high_quality_image.jpg')
78+ shutil.copy(image, new_image)
79+
6780.. testcode ::
6881
6982 import io
@@ -98,6 +111,11 @@ To write unit tests for code which uses this library, without using your Vuforia
98111 active_flag=True,
99112 )
100113
114+ .. testcleanup ::
115+
116+ new_image = pathlib.Path('high_quality_image.jpg')
117+ new_image.unlink()
118+
101119There are some differences between the mock and the real Vuforia.
102120See https://vws-python-mock.readthedocs.io/en/latest/differences-to-vws.html for details.
103121
You can’t perform that action at this time.
0 commit comments