File: conftest.py

package info (click to toggle)
pyscard 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,348 kB
  • sloc: python: 8,718; ansic: 1,971; makefile: 51; sh: 7
file content (13 lines) | stat: -rw-r--r-- 307 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# pylint: disable=missing-module-docstring

import pytest

import smartcard.reader.ReaderGroups


@pytest.fixture(autouse=True)
def reset_reader_groups():
    """Reader group instances must be reset at the beginning of each test."""

    smartcard.reader.ReaderGroups.readergroups.instance = None
    yield