diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2021-08-16 23:46:26 +0300 |
|---|---|---|
| committer | Ville Skyttä <ville.skytta@iki.fi> | 2021-08-16 23:46:26 +0300 |
| commit | dff5e9105320ae39cbce4f375ef33803d0f3a593 (patch) | |
| tree | 218a6bbb5f80be138d2eb9a12225ef073c7e7c6b /tests | |
| parent | b0007e703a67d0939a4fd123fe594ee04a7a03e5 (diff) | |
| download | isort-dff5e9105320ae39cbce4f375ef33803d0f3a593.tar.gz | |
Spelling fixes
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/test_deprecated_finders.py | 4 | ||||
| -rw-r--r-- | tests/unit/test_format.py | 2 | ||||
| -rw-r--r-- | tests/unit/test_regressions.py | 2 | ||||
| -rw-r--r-- | tests/unit/utils.py | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/test_deprecated_finders.py b/tests/unit/test_deprecated_finders.py index 3e3be56e..3d715c2e 100644 --- a/tests/unit/test_deprecated_finders.py +++ b/tests/unit/test_deprecated_finders.py @@ -158,7 +158,7 @@ def test_requirements_finder(tmpdir) -> None: assert finder._normalize_name("deal") == "deal" assert finder._normalize_name("Django") == "django" # lowercase assert finder._normalize_name("django_haystack") == "haystack" # mapping - assert finder._normalize_name("Flask-RESTful") == "flask_restful" # conver `-`to `_` + assert finder._normalize_name("Flask-RESTful") == "flask_restful" # convert `-`to `_` req_file.remove() @@ -178,7 +178,7 @@ def test_pipfile_finder(tmpdir) -> None: assert finder._normalize_name("deal") == "deal" assert finder._normalize_name("Django") == "django" # lowercase assert finder._normalize_name("django_haystack") == "haystack" # mapping - assert finder._normalize_name("Flask-RESTful") == "flask_restful" # conver `-`to `_` + assert finder._normalize_name("Flask-RESTful") == "flask_restful" # convert `-`to `_` pipfile.remove() diff --git a/tests/unit/test_format.py b/tests/unit/test_format.py index 527feaa0..81f23531 100644 --- a/tests/unit/test_format.py +++ b/tests/unit/test_format.py @@ -85,7 +85,7 @@ def test_colored_printer_diff(capsys): assert colorama.Fore.GREEN + "+ added line" in out # Removed lines are red assert colorama.Fore.RED + "- removed line" in out - # Normal lines are resetted back + # Normal lines are reset back assert colorama.Style.RESET_ALL + "normal line" in out diff --git a/tests/unit/test_regressions.py b/tests/unit/test_regressions.py index d1003e21..69008b2d 100644 --- a/tests/unit/test_regressions.py +++ b/tests/unit/test_regressions.py @@ -98,7 +98,7 @@ from starlette import status def test_extra_blank_line_added_nested_imports_issue_1290(): - """Ensure isort doesn't added unecessary blank lines above nested imports. + """Ensure isort doesn't add unnecessary blank lines above nested imports. See: https://github.com/pycqa/isort/issues/1290 """ test_input = '''from typing import TYPE_CHECKING diff --git a/tests/unit/utils.py b/tests/unit/utils.py index b87e7a45..3b00ced9 100644 --- a/tests/unit/utils.py +++ b/tests/unit/utils.py @@ -19,7 +19,7 @@ def as_stream(text: str) -> UnseekableTextIOWrapper: def isort_test(code: str, expected_output: str = "", **config): """Runs isort against the given code snippet and ensures that it - gives consistent output accross multiple runs, and if an expected_output + gives consistent output across multiple runs, and if an expected_output is given - that it matches that. """ expected_output = expected_output or code |
