Skip to content

Black formatting pytest fails for tests/test_interpolation.py #43

Closed
@vduseev

Description

@vduseev

Summary

Running poetry run pytest fails because tests/test_interpolation.py is not formatted properly.

How to reproduce

  1. Git clone
  2. Python version 3.8.5
  3. Install all dependencies using poetry, including extras
  4. 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

  1. pytest should not fail

Fix suggestions

  1. Format tests/test_interpolation.py file using black.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions