configaroo 0.6.0__tar.gz → 0.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {configaroo-0.6.0/src/configaroo.egg-info → configaroo-0.6.1}/PKG-INFO +1 -1
- {configaroo-0.6.0 → configaroo-0.6.1}/pyproject.toml +1 -1
- {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/__init__.py +1 -1
- {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/configuration.py +1 -0
- {configaroo-0.6.0 → configaroo-0.6.1/src/configaroo.egg-info}/PKG-INFO +1 -1
- {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_print.py +8 -2
- {configaroo-0.6.0 → configaroo-0.6.1}/LICENSE +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/README.md +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/setup.cfg +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/exceptions.py +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/loaders/__init__.py +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/loaders/json.py +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/loaders/toml.py +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/py.typed +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo.egg-info/SOURCES.txt +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo.egg-info/dependency_links.txt +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo.egg-info/requires.txt +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo.egg-info/top_level.txt +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_configuration.py +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_dynamic.py +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_environment.py +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_json.py +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_loaders.py +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_toml.py +0 -0
- {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_validation.py +0 -0
@@ -86,7 +86,7 @@ reportUnknownArgumentType = "none"
|
|
86
86
|
reportUnknownMemberType = "none"
|
87
87
|
|
88
88
|
[tool.bumpver]
|
89
|
-
current_version = "v0.6.
|
89
|
+
current_version = "v0.6.1"
|
90
90
|
version_pattern = "vMAJOR.MINOR.PATCH"
|
91
91
|
commit_message = "bump version {old_version} -> {new_version}"
|
92
92
|
tag_message = "{new_version}"
|
@@ -96,10 +96,13 @@ def test_printing_of_nested_sections(
|
|
96
96
|
assert lines == ["- sea: 'Marianer'"]
|
97
97
|
|
98
98
|
|
99
|
-
def test_printing_of_rich_markup() -> None:
|
99
|
+
def test_printing_of_rich_markup(capsys: pytest.CaptureFixture[str]) -> None:
|
100
100
|
"""Test that a config value containing malformed Rich markup can be printed."""
|
101
101
|
config = Configuration({"markup": "[/]"})
|
102
102
|
print_configuration(config)
|
103
|
+
stdout = capsys.readouterr().out
|
104
|
+
|
105
|
+
assert stdout.strip() == "- markup: '[/]'"
|
103
106
|
|
104
107
|
|
105
108
|
def test_print_keeping_none(
|
@@ -118,9 +121,12 @@ def test_print_skipping_none(
|
|
118
121
|
capsys: pytest.CaptureFixture[str], config: Configuration
|
119
122
|
) -> None:
|
120
123
|
"""Test that None-values are skipped in printout if asked for."""
|
121
|
-
|
124
|
+
config.update({"none": None})
|
125
|
+
config.nested.deep.update({"sea": "Mjoesa", "depth": None})
|
126
|
+
print_configuration(config, skip_none=True)
|
122
127
|
stdout = capsys.readouterr().out
|
123
128
|
lines = stdout.splitlines()
|
124
129
|
|
125
130
|
assert "- none: None" not in lines
|
131
|
+
assert " - depth: None" not in lines
|
126
132
|
assert "- number: 42" in lines
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|