Skip to content

Tests

Ensure you have installed valkey-server and valkey-cli on your host (or redis-server and redis-cli). See the Valkey installation guide to install the Valkey server and CLI.

You can run all tests from the root python/ directory using:

Terminal window
python3 dev.py test

To pass additional arguments to pytest, use the --args flag:

Terminal window
# Run a specific test
python3 dev.py test --args -k <test_name>
# Run against existing servers with tls enabled
python3 dev.py test --args \
--tls \
--cluster-endpoints=localhost:7000 \
--standalone-endpoints=localhost:6379