mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 15:44:17 +00:00
break type checking cycles
This commit is contained in:
parent
f6267dd4d7
commit
fa4c31fb97
10 changed files with 142 additions and 150 deletions
|
|
@ -1,8 +1,8 @@
|
|||
"""Tests for the Nothing formatter obbject."""
|
||||
import argparse
|
||||
|
||||
from flake8 import style_guide
|
||||
from flake8.formatting import default
|
||||
from flake8.violation import Violation
|
||||
|
||||
|
||||
def options(**kwargs):
|
||||
|
|
@ -16,7 +16,7 @@ def options(**kwargs):
|
|||
def test_format_returns_nothing():
|
||||
"""Verify Nothing.format returns None."""
|
||||
formatter = default.Nothing(options())
|
||||
error = style_guide.Violation("code", "file.py", 1, 1, "text", "1")
|
||||
error = Violation("code", "file.py", 1, 1, "text", "1")
|
||||
|
||||
assert formatter.format(error) is None
|
||||
|
||||
|
|
@ -24,6 +24,6 @@ def test_format_returns_nothing():
|
|||
def test_show_source_returns_nothing():
|
||||
"""Verify Nothing.show_source returns None."""
|
||||
formatter = default.Nothing(options())
|
||||
error = style_guide.Violation("code", "file.py", 1, 1, "text", "1")
|
||||
error = Violation("code", "file.py", 1, 1, "text", "1")
|
||||
|
||||
assert formatter.show_source(error) is None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue