Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses testcontainers to provide a redis instance for the unit tests #470

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

chrisguidry
Copy link
Contributor

We can't assume that a dev would want the unit tests to connect to the locally
running redis at localhost:6379, so I'd rather shift that to assuming that the
user has a Docker-compatible system available. This makes the test suite easier
to reason about and lets us control the redis version with more precision, and
it makes the initial startup experience easier for new devs.

We can't assume that a dev would want the unit tests to connect to the locally
running redis at `localhost:6379`, so I'd rather shift that to assuming that the
user has a Docker-compatible system available.  This makes the test suite easier
to reason about and lets us control the redis version with more precision, and
it makes the initial startup experience easier for new devs.
.github/workflows/ci.yml Outdated Show resolved Hide resolved
Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything else looks good to me.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
@samuelcolvin
Copy link
Member

LGTM, merge if you're happy.

@samuelcolvin samuelcolvin merged commit 3f865a6 into python-arq:main Jul 25, 2024
11 checks passed
@chrisguidry chrisguidry deleted the test-redis-in-docker branch July 25, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants