revert basically the former change "init generalConfig.defaults only in secop-server" The problem of import order when setting generalConfig.defaults has to be solved by not overriding already existing keys when setting the default. Change-Id: I82121e346607dd74146279c4241e13ab63c14096 Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/28011 Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de> Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
22 lines
317 B
Python
22 lines
317 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
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
# pylint: disable=redefined-builtin
|
|
def globals():
|
|
return dict()
|