Skip to content

Commit

Permalink
Merge pull request #613 from akaihola/split-test_main
Browse files Browse the repository at this point in the history
refactor,test: huge test_main.py into pieces
  • Loading branch information
akaihola authored Aug 9, 2024
2 parents 1afd2d3 + ff6333e commit 811616f
Show file tree
Hide file tree
Showing 5 changed files with 425 additions and 373 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ ignore = [
"ANN201", # Missing return type annotation for public function
"ANN204", # Missing return type annotation for special method `__init__`
"C408", # Unnecessary `dict` call (rewrite as a literal)
"PLR0913", # Too many arguments in function definition (n > 5)
"S101", # Use of `assert` detected
]

Expand Down
6 changes: 6 additions & 0 deletions src/darker/tests/examples.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""Example Python source code for testing."""

A_PY = ["import sys", "import os", "print( '{}'.format('42'))", ""]
A_PY_BLACK = ["import sys", "import os", "", 'print("{}".format("42"))', ""]
A_PY_BLACK_ISORT = ["import os", "import sys", "", 'print("{}".format("42"))', ""]
A_PY_BLACK_FLYNT = ["import sys", "import os", "", 'print("42")', ""]
Loading

0 comments on commit 811616f

Please sign in to comment.