Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions flask-redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A sample App using flask and redis

> **Note:** Keploy records and mocks Redis only in [Keploy Enterprise](https://keploy.io/docs/keploy-cloud/cloud-installation/). The `source keploy.sh` command below installs Keploy Enterprise, and a free account is enough for it (free-tier runs are subject to a usage allowance). The open-source `keploy` (installed with `curl -O https://raw.githubusercontent.com/keploy/keploy/main/keploy.sh && source keploy.sh --oss`, the keploy/keploy GitHub release binary, or the `ghcr.io/keploy/keploy` image) passes the app's Redis calls through to the real Redis server in record and in test mode, records no Redis mocks, and logs that the Redis calls are skipped. With it, keep Redis running while `keploy test` runs; a test whose response depends on Redis data, such as the book IDs this app takes from a Redis counter, can then fail, because the app reads and writes the live Redis. The test set in `keploy/` holds Redis mocks, which the open-source `keploy` skips and logs as skipped. To drop them, delete `keploy/test-set-0` and record again. Every mention of mocks in this README, and its passing test runs, apply to Keploy Enterprise.

## Setup application

1. Clone the repository and move to flask-redis folder
Expand Down