dosage/tests/conftest.py
Tobias Gruetzmacher 62ce301ce9 Switch from appdirs to platformdirs
Additionally, this removes our hack to support XDG directories on
anything but UNIXy platforms. It was pretty brittle to begin with and
probably won't work on Windows at all with platformdirs...
2022-05-30 01:04:10 +02:00

21 lines
413 B
Python

# SPDX-License-Identifier: MIT
# Copyright (C) 2019-2022 Tobias Gruetzmacher
import time
from pathlib import Path
import pytest
@pytest.fixture()
def _nosleep(monkeypatch):
def sleep(seconds):
pass
monkeypatch.setattr(time, 'sleep', sleep)
@pytest.fixture()
def _noappdirs(monkeypatch):
monkeypatch.setattr('dosagelib.cmd.user_plugin_path', Path(__file__).parent / 'mocks' / 'plugins')