envier
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: envier | ||
| Version: 0.2.0 | ||
| Version: 0.2.1 | ||
| Summary: Python application configuration via the environment | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/DataDog/envier |
+1
-1
@@ -221,3 +221,3 @@ import os | ||
| ) # type: str | ||
| if self._full_prefix: | ||
| if self._full_prefix and not self._full_prefix.endswith("_"): | ||
| self._full_prefix += "_" | ||
@@ -224,0 +224,0 @@ |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: envier | ||
| Version: 0.2.0 | ||
| Version: 0.2.1 | ||
| Summary: Python application configuration via the environment | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/DataDog/envier |
@@ -143,7 +143,10 @@ from typing import Optional | ||
| def test_env_nested_config(monkeypatch): | ||
| monkeypatch.setenv("MYAPP_SERVICE_PORT", "8080") | ||
| @pytest.mark.parametrize( | ||
| "prefix,var", [("", "MYAPP_PORT"), ("service", "MYAPP_SERVICE_PORT")] | ||
| ) | ||
| def test_env_nested_config(monkeypatch, prefix, var): | ||
| monkeypatch.setenv(var, "8080") | ||
| class ServiceConfig(Env): | ||
| __prefix__ = "service" | ||
| __prefix__ = prefix | ||
@@ -150,0 +153,0 @@ host = Env.var(str, "host", default="localhost") |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
46484
0.29%734
0.41%