Skip to main content

Plugin to run Redis using the Hitch testing framework.

Project description

HitchRedis

HitchRedis is a plugin for the Hitch testing framework that lets you run and interact with Redis during your integration tests.

Use with Hitch

Install like so:

$ hitch install hitchredis
# Service definition in engine's setUp:
self.services['Redis'] = hitchredis.RedisService(
    version="2.8.4"                                     # Mandatory
    redis_exec="redis-server",                          # Optional (default: redis-server)
    redis_cli="redis-cli",                              # Optional (default: redis-cli)
    port=16379,                                         # Optional (default: 16379)
)

# Interact using the cli:
self.services['Redis'].cli("-n", "1", "get", "mypasswd").run()
[ prints mypasswd ]

See this service in action at the DjangoRemindMe project.

Features

  • Starts up on a separate thread in parallel with other services when running with HitchServe, so that your integration tests run faster.

  • Contains subcommand to interact with the CLI.

  • Run the server on whichever port you like.

  • Version must be set explicitly to prevent “works on my machine” screw ups caused by different versions of Redis being installed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hitchredis-0.2.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file hitchredis-0.2.tar.gz.

File metadata

  • Download URL: hitchredis-0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hitchredis-0.2.tar.gz
Algorithm Hash digest
SHA256 306271517c006a485020fb3b15a30e40dfedb796349dabeae8a2f0d21ba0461d
MD5 e77ace012336f2facd2f2c7aeb48609b
BLAKE2b-256 f4a83c3f614fdb143cb3068f3cdcf7bdac5dcf253dfd16c8f078937136d19894

See more details on using hashes here.

Supported by

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