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
variables:
REDIS_HOST: redis
before_script:
- pip install -r requirements_dev.txt
- pip install .
......
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
......
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