Add 2 full tests for plugin + use env port for test

This commit is contained in:
2015-12-18 23:06:38 +05:30
parent c13240e857
commit 02f0a440a0
8 changed files with 128 additions and 1 deletions
+6 -1
View File
@@ -3,8 +3,13 @@ import subprocess
import time
import sys
import redis
import os
REDIS_PORT = 5946
env_redis_port = os.environ.get("pytest_status_port")
if env_redis_port:
REDIS_PORT = int(env_redis_port)
else:
REDIS_PORT = 5946
command_redis_server_gen = "redis-server --port {port} --maxheap 20MB"
command_redis_server = command_redis_server_gen.format(port=REDIS_PORT)