complaints by pylint are mainly related to - remove object from base list in class definitions - unnecessary else/elif after return/raise Change-Id: I13d15449149cc8bba0562338d0c9c42e97163bdf Reviewed-on: https://forge.frm2.tum.de/review/c/sine2020/secop/playground/+/21325 Tested-by: JenkinsCodeReview <bjoern_pedersen@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()
|