#!/usr/bin/env bash

source "$(dirname "${BASH_SOURCE[0]}")/_config.sh"

# Recreate the redis sentinel service to avoid inconsistent state
_docker_compose up -d -V redis-sentinel

_dc_run \
    -e DJANGO_CONFIGURATION=Test \
    -e PYTHONPATH=/app/sandbox \
    app \
    pytest "$@"
