- before some chamges in the gerrit pipline Change-Id: I33eb2d75f83345a7039d0fb709e66defefb1c3e0
22 lines
313 B
Python
22 lines
313 B
Python
# content of conftest.py
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
|
def constants():
|
|
# setup
|
|
class Constants:
|
|
ONE = 1
|
|
TWO = 2
|
|
c = Constants()
|
|
yield c
|
|
# teardown
|
|
del c
|
|
|
|
|
|
# pylint: disable=redefined-builtin
|
|
@pytest.fixture(scope="session")
|
|
def globals():
|
|
return {}
|