diff options
| author | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2021-11-06 22:59:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-06 22:59:42 -0700 |
| commit | dcbf92fbaaf1a971e96746c47eb91e35e7badc07 (patch) | |
| tree | 8609f98250117ede7a851769c22e8c7c97b5e674 /tests | |
| parent | c154ecff496bf9309eaf5d887f4aa4a0abba28a2 (diff) | |
| download | isort-dcbf92fbaaf1a971e96746c47eb91e35e7badc07.tar.gz | |
Revert "only skip real comments"
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/test_isort.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/unit/test_isort.py b/tests/unit/test_isort.py index 6f885581..8a224ec8 100644 --- a/tests/unit/test_isort.py +++ b/tests/unit/test_isort.py @@ -839,27 +839,6 @@ def test_skip_within_file() -> None: isort.code(test_input, known_third_party=["django"]) -def test_skip_comment_without_space_after_hash() -> None: - """Ensure skipping a whole file works.""" - test_input = "#isort: skip_file\nimport django\nimport myproject\n" - with pytest.raises(FileSkipped): - isort.code(test_input, known_third_party=["django"]) - - -def test_skip_comment_with_multiline_comment() -> None: - """Ensure skipping a whole file works.""" - test_input = '"""some comment\n\nisort: skip_file\nimport django\nimport myproject\n"""' - with pytest.raises(FileSkipped): - isort.code(test_input, known_third_party=["django"]) - - -def test_skip_comment_is_no_comment() -> None: - """Ensure skipping a whole file works.""" - test_input = 'content = "# isort:skip_file"' - test_output = isort.code(test_input) - assert test_output == test_input - - def test_force_to_top() -> None: """Ensure forcing a single import to the top of its category works as expected.""" test_input = "import lib6\nimport lib2\nimport lib5\nimport lib1\n" |
