File: conftest.py

package info (click to toggle)
python-guizero 1.6.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,872 kB
  • sloc: python: 7,160; makefile: 34; sh: 17
file content (9 lines) | stat: -rw-r--r-- 236 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
import pytest
from time import sleep

@pytest.fixture(autouse=True)
def delay():
    # put a small delay in before every test,
    #  otherwise tkinter can get upset by the constant
    #  creating and destroying of apps
    sleep(0.1)