13 lines
435 B
Python
13 lines
435 B
Python
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")
|
|
}
|