from feed_ingestion.util import app_version def test_get_app_version(monkeypatch): monkeypatch.setenv('APP_VERSION', 'test_version') result = app_version.get_app_version() assert result == 'test_version' def test_get_app_version_file_not_exist(monkeypatch): monkeypatch.delenv('APP_VERSION', raising=False) result = app_version.get_app_version() assert result == 'not_available'