2024-03-10 11:45:24 -07:00
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
|
|
def mock_env(monkeypatch):
|
|
|
|
fixtures = Path(__file__).parent / 'fixtures'
|
|
|
|
monkeypatch.setenv('CROAKER_ROOT', str(fixtures))
|
|
|
|
monkeypatch.setenv('MEDIA_GLOB', '*.mp3,*.foo,*.bar')
|
2024-03-17 14:44:36 -07:00
|
|
|
monkeypatch.setenv('ICECAST_URL', 'http://127.0.0.1')
|
|
|
|
monkeypatch.setenv('ICECAST_HOST', 'localhost')
|
|
|
|
monkeypatch.setenv('ICECAST_MOUNT', 'mount')
|
|
|
|
monkeypatch.setenv('ICECAST_PORT', '6523')
|
|
|
|
monkeypatch.setenv('ICECAST_PASSWORD', 'password')
|
|
|
|
monkeypatch.setenv('DEBUG', '1')
|