class EnvironmentSetup(unittest.TestCase):
base_config = None
@classmethod
def setUpClass(cls):
cls.base_config = cls.setConfig()
@classmethod
def setConfig(cls):
with open('../config.json') as file:
config = json.load(file)
return config
from tests.base.test import EnvironmentSetup as base_test
class Another:
def __init__(self, params):
print(base_test.base_config) -> Получаю None соответственно