dosage/tests/conftest.py

15 lines
236 B
Python
Raw Normal View History

# SPDX-License-Identifier: MIT
2020-04-18 11:03:02 +00:00
# Copyright (C) 2019-2020 Tobias Gruetzmacher
2019-12-03 22:52:14 +00:00
import time
import pytest
2020-04-18 11:03:02 +00:00
@pytest.fixture()
def _nosleep(monkeypatch):
2019-12-03 22:52:14 +00:00
def sleep(seconds):
pass
monkeypatch.setattr(time, 'sleep', sleep)