python-osism
Running unit tests
Install development dependencies and run the full unit test suite:
pipenv install --dev
pipenv run pytest
Run a single test module:
pipenv run pytest tests/unit/test_smoke.py
Running integration tests
The integration tests in tests/integration/ exercise the Celery/Redis task
core (broker, queue routing, worker, result backend, Redis streams and locks)
end-to-end. They require a reachable Redis and start a Celery worker from the
same virtualenv; they are skipped automatically when Redis is not running.
docker run -d -p 6379:6379 redis:7-alpine
REDIS_HOST=localhost REDIS_DB=15 pipenv run pytest tests/integration
Warning: The suite mutates live state on the configured Redis. Most keys are per-run (UUID-based), but some are fixed global names on the selected
REDIS_DB: the task-lock test reads, writes and removesosism:task_lock, and the vault test removesansible_vault_password— which a real deployment cannot recover, since no other copy of it exists on the system. Always point the suite at a disposable Redis (such as the throwaway container above).To make that hard to get wrong, the suite refuses to run against
REDIS_DB=0, the database a deployment uses. SetREDIS_DBto a spare database as shown above, orOSISM_ALLOW_DEFAULT_REDIS_DB=1if the Redis itself is disposable.REDIS_DBmoves the direct client, the Celery broker and the result backend together.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file osism-0.20260806.0.tar.gz.
File metadata
- Download URL: osism-0.20260806.0.tar.gz
- Upload date:
- Size: 873.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf2a4a41a6653bd660ed78599a0cd032fbb55259f2c4cbac83d6308058a8e076
|
|
| MD5 |
1f3f8a10084072c6d3c8a0d31d27a9ea
|
|
| BLAKE2b-256 |
6d1706e7dcbf8d590a3ad5a8acb85b25135fc28ed4586088ed879211b4a4caca
|
File details
Details for the file osism-0.20260806.0-py3-none-any.whl.
File metadata
- Download URL: osism-0.20260806.0-py3-none-any.whl
- Upload date:
- Size: 280.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
099bf6dd5974393de97e93c342b4a11265079c9500d1c62cf5f265ebfcabd8b3
|
|
| MD5 |
e5549f871e8cd7d31291c3331738f69d
|
|
| BLAKE2b-256 |
7b0990855c313ee96f7fd9431026ccb78eac46d393e97f956f77c1ca4f7e2481
|