14 lines
518 B
Python
14 lines
518 B
Python
"""
|
|
Shared pytest configuration.
|
|
|
|
Env vars required by decnet.env must be set here, at module level, before
|
|
any test file imports decnet.* — pytest loads conftest.py first.
|
|
"""
|
|
import os
|
|
|
|
os.environ.setdefault("DECNET_JWT_SECRET", "test-jwt-secret-not-for-production-use")
|
|
os.environ.setdefault("DECNET_ADMIN_PASSWORD", "test-admin-password-1234!")
|
|
os.environ.setdefault("DECNET_ADMIN_USER", "admin")
|
|
# Expose OpenAPI schema so schemathesis can load it during tests
|
|
os.environ.setdefault("DECNET_DEVELOPER", "true")
|