Skip to content

Commit dfef4d5

Browse files
committed
Add setup and teardown for markdown test
1 parent 00ac786 commit dfef4d5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,33 @@ language.
2121

2222
## Getting Started
2323

24+
<!--
25+
```python
26+
import pathlib
27+
import shutil
28+
29+
import vws_test_fixtures
30+
from mock_vws import MockVWS
31+
from mock_vws.database import VuforiaDatabase
32+
33+
mock = MockVWS(real_http=False)
34+
database = VuforiaDatabase(
35+
server_access_key='[server-access-key]',
36+
server_secret_key='[server-secret-key]',
37+
client_access_key='[client-access-key]',
38+
client_secret_key='[client-secret-key]',
39+
)
40+
mock.add_database(database=database)
41+
mock.__enter__()
42+
43+
# We rely on implementation details of the fixtures package.
44+
image = pathlib.Path(vws_test_fixtures.__path__[0]) / 'high_quality_image.jpg'
45+
assert image.exists(), image.resolve()
46+
new_image = pathlib.Path('high_quality_image.jpg')
47+
shutil.copy(image, new_image)
48+
```
49+
-->
50+
2451
```python
2552
import io
2653
import pathlib
@@ -59,6 +86,15 @@ matching_targets = cloud_reco_client.query(image=my_image)
5986
assert matching_targets[0].target_id == target_id
6087
```
6188

89+
<!--
90+
```python
91+
import pathlib
92+
93+
new_image = pathlib.Path('high_quality_image.jpg')
94+
new_image.unlink()
95+
```
96+
-->
97+
6298
## Full Documentation
6399

64100
See the [full

0 commit comments

Comments
 (0)