mirror of
https://github.com/bendtherules/pytest_gui_status.git
synced 2026-08-18 21:52:18 +00:00
Add 2 full tests for plugin + use env port for test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user