You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can run unit tests with `pytest`. You'll also need to install the test dependencies:
19
+
```bash
20
+
cd apis/python
21
+
pip install ".[test]"
22
+
```
23
+
Then you can run the tests:
24
+
```bash
25
+
cd apis/python
26
+
# To run all tests.
27
+
pytest
28
+
# To run a single test and display standard output and standard error.
29
+
pytest test/test_ingestion.py -s
30
+
```
31
+
32
+
To test Demo notebooks:
33
+
```bash
34
+
cd apis/python
35
+
pip install -r test/ipynb/requirements.txt
36
+
pytest --nbmake test/ipynb
37
+
```
38
+
39
+
Credentials:
40
+
* Some tests run on TileDB Cloud using your current environment variable `TILEDB_REST_TOKEN` - you will need a valid API token for the tests to pass. See [Create API Tokens](https://docs.tiledb.com/cloud/how-to/account/create-api-tokens) for for instructions on getting one.
41
+
* For continuous integration, the token is configured for the `unittest` user and all tests should pass.
0 commit comments