Skip to content

Commit

Permalink
Update messages in tests/tools/test_pylint_works.py
Browse files Browse the repository at this point in the history
Pylint 3.1.0 updated the messages of the wrong-import-order check:
https://github.com/pylint-dev/pylint/releases/tag/v3.1.0

This commit updates the messages in the test accordingly so
the test passes again.
  • Loading branch information
funkeleinhorn committed Mar 1, 2024
1 parent 586c5bc commit bbef08b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tools/test_pylint_works.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ def test_pylint_works(capsys: "CaptureFixture") -> None:
f'{notebook1}:cell_4:1:0: C0413: Import "from random import randint" should be placed at the top of the module (wrong-import-position)\n' # noqa: E501
f'{notebook1}:cell_5:1:0: C0413: Import "import pprint" should be placed at the top of the module (wrong-import-position)\n' # noqa: E501
f'{notebook1}:cell_5:2:0: C0413: Import "import sys" should be placed at the top of the module (wrong-import-position)\n' # noqa: E501
f'{notebook1}:cell_4:1:0: C0411: standard import "from random import randint" should be placed before "import nbqa" (wrong-import-order)\n' # noqa: E501
f'{notebook1}:cell_5:1:0: C0411: standard import "import pprint" should be placed before "import nbqa" (wrong-import-order)\n' # noqa: E501
f'{notebook1}:cell_5:2:0: C0411: standard import "import sys" should be placed before "import nbqa" (wrong-import-order)\n' # noqa: E501
f'{notebook1}:cell_4:1:0: C0411: standard import "random.randint" should be placed before first party import "nbqa" (wrong-import-order)\n' # noqa: E501
f'{notebook1}:cell_5:1:0: C0411: standard import "pprint" should be placed before first party import "nbqa" (wrong-import-order)\n' # noqa: E501
f'{notebook1}:cell_5:2:0: C0411: standard import "sys" should be placed before first party import "nbqa" (wrong-import-order)\n' # noqa: E501
f"{notebook1}:cell_1:1:0: W0611: Unused import os (unused-import)\n"
f"{notebook1}:cell_1:3:0: W0611: Unused import glob (unused-import)\n"
f"{notebook1}:cell_1:5:0: W0611: Unused import nbqa (unused-import)\n"
f"{notebook1}:cell_4:1:0: W0611: Unused randint imported from random (unused-import)\n"
"************* Module tests.data.notebook_with_indented_magics\n"
f'{notebook2}:cell_3:3:0: C0411: standard import "import operator" should be placed before "from IPython import get_ipython" (wrong-import-order)\n' # noqa: E501
f'{notebook2}:cell_3:3:0: C0411: standard import "operator" should be placed before third party import "IPython.get_ipython" (wrong-import-order)\n' # noqa: E501
f"{notebook2}:cell_1:1:0: W0611: Unused randint imported from random (unused-import)\n"
f"{notebook2}:cell_1:2:0: W0611: Unused get_ipython imported from IPython (unused-import)\n"
"\n"
Expand Down

0 comments on commit bbef08b

Please sign in to comment.