dosage/tests/conftest.py
2019-12-03 23:52:14 +01:00

17 lines
288 B
Python

# -*- coding: utf-8 -*-
# Copyright (C) 2019 Tobias Gruetzmacher
from __future__ import absolute_import, division, print_function
import time
import pytest
@pytest.fixture
def nosleep(monkeypatch):
def sleep(seconds):
pass
monkeypatch.setattr(time, 'sleep', sleep)