Closed
Description
Summary
Running poetry run pytest
fails because tests/test_interpolation.py is not formatted properly.
How to reproduce
- Git clone
- Python version
3.8.5
- Install all dependencies using poetry, including extras
- Run
poetry run pytest
What happens
======================================= FAILURES =======================================
__________________________________ Black format check __________________________________
--- /Users/vduseev/Projects/python-configuration/tests/test_interpolation.py 2020-09-25 22:52:16.815449 +0000
+++ /Users/vduseev/Projects/python-configuration/tests/test_interpolation.py 2020-09-25 23:23:21.326248 +0000
@@ -44,11 +44,14 @@
assert cfg["var2"] == "is a test"
assert cfg["var1"] == "This is a test"
assert cfg.var1 == "This is a test"
cfg = config_from_dict(
- VALUES, lowercase_keys=True, interpolate=True, interpolate_type="unknown",
+ VALUES,
+ lowercase_keys=True,
+ interpolate=True,
+ interpolate_type="unknown",
)
with raises(ValueError, match='Invalid interpolation method "unknown"'):
assert cfg.var3 == "fail"
=============================== short test summary info ================================
FAILED tests/test_interpolation.py::BLACK
====================== 1 failed, 169 passed, 36 skipped in 4.25s =======================
What should happen
- pytest should not fail
Fix suggestions
- Format
tests/test_interpolation.py
file usingblack
.
Metadata
Metadata
Assignees
Labels
No labels