EOX GitLab Instance

Commit 37ba2525 authored by Fabian Schindler's avatar Fabian Schindler
Browse files

passing redis host

parent d1463d85
Pipeline #13172 passed with stage
in 40 seconds
image: python:latest image: python:latest
variables:
REDIS_HOST: redis
before_script: before_script:
- pip install -r requirements_dev.txt - pip install -r requirements_dev.txt
- pip install . - pip install .
......
import os
from datetime import datetime from datetime import datetime
import pytest import pytest
...@@ -7,10 +8,11 @@ from vsq.queue import ( ...@@ -7,10 +8,11 @@ from vsq.queue import (
Queue, TaskFailedException, TaskTimeoutException, TaskStatus Queue, TaskFailedException, TaskTimeoutException, TaskStatus
) )
@pytest.fixture @pytest.fixture
def redis(): def redis():
redis = Redis( redis = Redis(
'localhost', os.environ.get('REDIS_HOST', 'localhost'),
6379, 6379,
) )
yield redis yield redis
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment