62ce301ce9
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...
20 lines
413 B
Python
20 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')
|