
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>
22 lines
325 B
Python
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()
|