dosage/tests/conftest.py

15 lines
221 B
Python
Raw Normal View History

2019-12-03 22:52:14 +00:00
# -*- coding: utf-8 -*-
# Copyright (C) 2019 Tobias Gruetzmacher
import time
import pytest
@pytest.fixture
def nosleep(monkeypatch):
def sleep(seconds):
pass
monkeypatch.setattr(time, 'sleep', sleep)