v2.5.1
Fixes
- Fix init services in tests #114
If you import config()from pyms.flask.app import config
and initialize the config file inside a function like
@pytest.fixture
def app():
"""
Return app for testing
"""
base_dir = os.path.dirname(os.path.abspath(__file__))
os.environ[CONFIGMAP_FILE_ENVIRONMENT] = os.path.join(base_dir, "config-test.yml")
The singleton pattern not reinitializes the services correctly