File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ NAME := aredis_om
22SYNC_NAME := redis_om
33INSTALL_STAMP := .install.stamp
44POETRY := $(shell command -v poetry 2> /dev/null)
5+ REDIS_OM_URL ?= "redis://localhost:6380?decode_responses=True"
56
67.DEFAULT_GOAL := help
78
@@ -56,16 +57,16 @@ lint: $(INSTALL_STAMP) dist
5657 $(POETRY ) run twine check dist/*
5758
5859.PHONY : format
59- format : $(INSTALL_STAMP ) sync
60+ format : $(INSTALL_STAMP ) sync redis
6061 $(POETRY ) run isort --profile=black --lines-after-imports=2 ./tests/ $(NAME ) $(SYNC_NAME )
6162 $(POETRY ) run black ./tests/ $(NAME ) $(SYNC_NAME )
6263
6364.PHONY : test
6465test : $(INSTALL_STAMP ) sync
65- REDIS_OM_URL=" redis://localhost:6380?decode_responses=True " $(POETRY ) run pytest -n auto -vv ./tests/ ./tests_sync/ --cov-report term-missing --cov $(NAME ) $(SYNC_NAME )
66+ REDIS_OM_URL=" $( REDIS_OM_URL ) " $(POETRY ) run pytest -n auto -vv ./tests/ ./tests_sync/ --cov-report term-missing --cov $(NAME ) $(SYNC_NAME )
6667
6768.PHONY : test_oss
68- test_oss : $(INSTALL_STAMP ) sync
69+ test_oss : $(INSTALL_STAMP ) sync redis
6970 # Specifically tests against a local OSS Redis instance via
7071 # docker-compose.yml. Do not use this for CI testing, where we should
7172 # instead have a matrix of Docker images.
You can’t perform that action at this time.
0 commit comments