Add admin port support with other major refactorations
This commit is contained in:
12
tests/conftest.py
Normal file
12
tests/conftest.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import pytest
|
||||
import os
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def server_config():
|
||||
"""Provides server connection parameters from environment variables with defaults."""
|
||||
return {
|
||||
"host": os.getenv("OPENTTD_HOST", "127.0.0.1"),
|
||||
"game_port": int(os.getenv("OPENTTD_GAME_PORT", "3979")),
|
||||
"admin_port": int(os.getenv("OPENTTD_ADMIN_PORT", "3977")),
|
||||
"password": os.getenv("OPENTTD_PASSWORD", "asd")
|
||||
}
|
||||
Reference in New Issue
Block a user