conftest.py 231 B

123456789
  1. import pytest
  2. from room_cal._utils import get_config
  3. @pytest.fixture
  4. def require_user_cal():
  5. cfg = get_config()
  6. if not getattr(cfg, 'user_cal', None) or not cfg.user_cal.url:
  7. pytest.skip('user_cal CalDAV not configured')