Skip to main content

python-osism

Quay PyPi version PyPi license Documentation

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 removes osism:task_lock, and the vault test removes ansible_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. Set REDIS_DB to a spare database as shown above, or OSISM_ALLOW_DEFAULT_REDIS_DB=1 if the Redis itself is disposable. REDIS_DB moves 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

osism-0.20260808.0.tar.gz (890.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

osism-0.20260808.0-py3-none-any.whl (283.1 kB view details)

Uploaded Python 3

File details

Details for the file osism-0.20260808.0.tar.gz.

File metadata

  • Download URL: osism-0.20260808.0.tar.gz
  • Upload date:
  • Size: 890.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for osism-0.20260808.0.tar.gz
Algorithm Hash digest
SHA256 a18b4de5039790309114faf9ff0e3f8d0db050b719e16c346d8b7c35b8f3d394
MD5 450b29bae6a0886e16d42b74040bc2a3
BLAKE2b-256 3d1a5add0f2d15a0266acac988c4ab3e44eef26f6d90c54e987123e16fe74640

See more details on using hashes here.

File details

Details for the file osism-0.20260808.0-py3-none-any.whl.

File metadata

  • Download URL: osism-0.20260808.0-py3-none-any.whl
  • Upload date:
  • Size: 283.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for osism-0.20260808.0-py3-none-any.whl
Algorithm Hash digest
SHA256 348c2870fb6abd8d68902f3cca1b57decc89266275e7b307cbec4b35d55af5c8
MD5 096f1457314f6a37cf4aca770ed34b96
BLAKE2b-256 4bc7529abc21c2460519f5d6291817acf1796e0d3f24877f7766847e2716a11d

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page