8000 Release v2.5.1 · python-microservices/pyms · GitHub
[go: up one dir, main page]

Skip to content

v2.5.1

Compare
Choose a tag to compare
@avara1986 avara1986 released this 18 Apr 10:07
· 66 commits to master since this release

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

0