Add envvar to set Docker URL in tests

This commit is contained in:
Ben Firshman 2013-12-09 16:57:12 +00:00
parent e2e5172a59
commit dc4f90f3ed
1 changed files with 5 additions and 1 deletions

View File

@ -1,9 +1,13 @@
from unittest import TestCase
from docker import Client
from plum import Service
import os
client = Client('http://127.0.0.1:4243')
if os.environ.get('DOCKER_URL'):
client = Client(os.environ['DOCKER_URL'])
else:
client = Client()
client.pull('ubuntu')