github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python-wrapper/tests/integration/README.md (about) 1 # Python SDK System Tests 2 3 This package consists of the integration tests for the python SDK library. 4 Please make sure to add / modify tests whenever pushing new code to the SDK. 5 6 These tests can be run against a lakeFS instance with the following environment configuration: 7 8 ## Export lakectl environment variables 9 10 ```sh 11 export LAKECTL_CREDENTIALS_ACCESS_KEY_ID=<your_lakefs_access_key_id> 12 export LAKECTL_CREDENTIALS_SECRET_ACCESS_KEY=<your_lakefs_secret_access_key> 13 export LAKECTL_SERVER_ENDPOINT_URL=<your_lakefs_endpoint> 14 ``` 15 16 ## Export test environment variables 17 18 ```sh 19 export STORAGE_NAMESPACE=<base storage namespace for your tests> 20 export TAG=<lakeFS server version (dev)> 21 ``` 22 23 ## Create a venv and install dependencies 24 25 From the clients/python-wrapper directory: 26 27 ```sh 28 python3 -m venv <your_venv_path> 29 source <your_venv_path>/bin/activate 30 pip install -r requirements 31 ``` 32 33 ## Run Tests 34 35 ```sh 36 pytest tests 37 ```