Skip to content

Commit

Permalink
style: correct aaa03 error
Browse files Browse the repository at this point in the history
  • Loading branch information
lyz-code committed Feb 8, 2023
1 parent df5f71f commit 92db729
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/e2e/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ def test_pyproject_common_statements(runner: CliRunner, tmp_path: Path) -> None:
)
test_file = tmp_path / "source.py"
test_file.write_text("FooBar\n")
# AAA03: Until https://github.com/jamescooke/flake8-aaa/issues/196 is fixed
with runner.isolated_filesystem(temp_dir=tmp_path):

result = runner.invoke(cli, [str(test_file)])
result = runner.invoke(cli, [str(test_file)]) # noqa: AAA03

assert result.exit_code == 0
assert test_file.read_text() == dedent(
Expand Down Expand Up @@ -254,9 +254,9 @@ def test_global_and_local_config( # noqa: R0913, R0914
if create_pyproject:
pyproject_path = tmp_path / "pyproject.toml"
pyproject_path.write_text(config["pyproject"])
# AAA03: Until https://github.com/jamescooke/flake8-aaa/issues/196 is fixed
with runner.isolated_filesystem(temp_dir=tmp_path):

result = runner.invoke(cli, args, env=env)
result = runner.invoke(cli, args, env=env) # noqa: AAA03

assert result.exit_code == 0
assert code_path.read_text() == expected_imports + "\n\n" + original_code
Expand Down Expand Up @@ -333,9 +333,9 @@ def test_global_and_local_config_precedence(runner: CliRunner, tmp_path: Path) -
# create_pyproject:
pyproject_path = tmp_path / "pyproject.toml"
pyproject_path.write_text(config["pyproject"])
# AAA03: Until https://github.com/jamescooke/flake8-aaa/issues/196 is fixed
with runner.isolated_filesystem(temp_dir=tmp_path):

result = runner.invoke(cli, args, env=env)
result = runner.invoke(cli, args, env=env) # noqa: AAA03

assert result.exit_code == 0
assert code_path.read_text() == expected_imports + "\n" + original_code
Expand Down

0 comments on commit 92db729

Please sign in to comment.