frappy/test/conftest.py
Enrico Faulhaber 70a9c42a7a Remove py2 support
Change-Id: Ieeaeb3b8efcae004e94aea6c1d2703c9782a8650
Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/21320
Tested-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
2019-09-26 10:32:01 +02:00

22 lines
325 B
Python

# content of conftest.py
import pytest
@pytest.fixture(scope="module")
def constants():
# setup
class Constants(object):
ONE = 1
TWO = 2
c = Constants()
yield c
# teardown
del c
@pytest.fixture(scope="session")
# pylint: disable=redefined-builtin
def globals():
return dict()