EOX GitLab Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ESA
PRISM
vsq
Commits
37ba2525
Commit
37ba2525
authored
May 07, 2021
by
Fabian Schindler
Browse files
passing redis host
parent
d1463d85
Pipeline
#13172
passed with stage
in 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
37ba2525
image
:
python:latest
variables
:
REDIS_HOST
:
redis
before_script
:
-
pip install -r requirements_dev.txt
-
pip install .
...
...
tests/test_queue.py
View file @
37ba2525
import
os
from
datetime
import
datetime
import
pytest
...
...
@@ -7,10 +8,11 @@ from vsq.queue import (
Queue
,
TaskFailedException
,
TaskTimeoutException
,
TaskStatus
)
@
pytest
.
fixture
def
redis
():
redis
=
Redis
(
'localhost'
,
os
.
environ
.
get
(
'REDIS_HOST'
,
'localhost'
)
,
6379
,
)
yield
redis
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment