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.
Files changed (25) hide show
  1. {configaroo-0.6.0/src/configaroo.egg-info → configaroo-0.6.1}/PKG-INFO +1 -1
  2. {configaroo-0.6.0 → configaroo-0.6.1}/pyproject.toml +1 -1
  3. {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/__init__.py +1 -1
  4. {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/configuration.py +1 -0
  5. {configaroo-0.6.0 → configaroo-0.6.1/src/configaroo.egg-info}/PKG-INFO +1 -1
  6. {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_print.py +8 -2
  7. {configaroo-0.6.0 → configaroo-0.6.1}/LICENSE +0 -0
  8. {configaroo-0.6.0 → configaroo-0.6.1}/README.md +0 -0
  9. {configaroo-0.6.0 → configaroo-0.6.1}/setup.cfg +0 -0
  10. {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/exceptions.py +0 -0
  11. {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/loaders/__init__.py +0 -0
  12. {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/loaders/json.py +0 -0
  13. {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/loaders/toml.py +0 -0
  14. {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo/py.typed +0 -0
  15. {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo.egg-info/SOURCES.txt +0 -0
  16. {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo.egg-info/dependency_links.txt +0 -0
  17. {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo.egg-info/requires.txt +0 -0
  18. {configaroo-0.6.0 → configaroo-0.6.1}/src/configaroo.egg-info/top_level.txt +0 -0
  19. {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_configuration.py +0 -0
  20. {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_dynamic.py +0 -0
  21. {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_environment.py +0 -0
  22. {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_json.py +0 -0
  23. {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_loaders.py +0 -0
  24. {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_toml.py +0 -0
  25. {configaroo-0.6.0 → configaroo-0.6.1}/tests/test_validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: configaroo
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: Bouncy handling of configuration files
5
5
  Author-email: Geir Arne Hjelle <geirarne@gmail.com>
6
6
  Maintainer-email: Geir Arne Hjelle <geirarne@gmail.com>
@@ -86,7 +86,7 @@ reportUnknownArgumentType = "none"
86
86
  reportUnknownMemberType = "none"
87
87
 
88
88
  [tool.bumpver]
89
- current_version = "v0.6.0"
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}"
@@ -20,4 +20,4 @@ __all__ = [
20
20
  "print_configuration",
21
21
  ]
22
22
 
23
- __version__ = "0.6.0"
23
+ __version__ = "0.6.1"
@@ -287,6 +287,7 @@ def _print_dict_as_tree(
287
287
  _print(" " * current_indent + f"- {key}")
288
288
  _print_dict_as_tree(
289
289
  value,
290
+ skip_none=skip_none,
290
291
  indent=indent,
291
292
  current_indent=current_indent + indent,
292
293
  _print=_print,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: configaroo
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: Bouncy handling of configuration files
5
5
  Author-email: Geir Arne Hjelle <geirarne@gmail.com>
6
6
  Maintainer-email: Geir Arne Hjelle <geirarne@gmail.com>
@@ -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
- print_configuration(config | {"none": None}, skip_none=True)
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