@@ -39,7 +39,7 @@ def test_run_flake8_trio(tmp_path: Path):
39
39
write_examplepy (tmp_path )
40
40
res = subprocess .run (
41
41
[
42
- "flake8_trio " ,
42
+ "flake8-trio " ,
43
43
"./example.py" ,
44
44
],
45
45
cwd = tmp_path ,
@@ -54,7 +54,7 @@ def test_systemexit_0(
54
54
tmp_path : Path , monkeypatch : pytest .MonkeyPatch , capsys : pytest .CaptureFixture [str ]
55
55
):
56
56
monkeypatch .chdir (tmp_path )
57
- monkeypatch .setattr (sys , "argv" , [tmp_path / "flake8_trio " , "./example.py" ])
57
+ monkeypatch .setattr (sys , "argv" , [tmp_path / "flake8-trio " , "./example.py" ])
58
58
59
59
tmp_path .joinpath ("example.py" ).write_text ("" )
60
60
@@ -72,7 +72,7 @@ def test_systemexit_1(
72
72
):
73
73
write_examplepy (tmp_path )
74
74
monkeypatch .chdir (tmp_path )
75
- monkeypatch .setattr (sys , "argv" , [tmp_path / "flake8_trio " , "./example.py" ])
75
+ monkeypatch .setattr (sys , "argv" , [tmp_path / "flake8-trio " , "./example.py" ])
76
76
77
77
with pytest .raises (SystemExit ) as exc_info :
78
78
from flake8_trio import __main__ # noqa
@@ -89,7 +89,7 @@ def test_run_in_git_repo(tmp_path: Path):
89
89
assert subprocess .run (["git" , "add" , "example.py" ], cwd = tmp_path )
90
90
res = subprocess .run (
91
91
[
92
- "flake8_trio " ,
92
+ "flake8-trio " ,
93
93
],
94
94
cwd = tmp_path ,
95
95
capture_output = True ,
@@ -103,7 +103,7 @@ def test_run_no_git_repo(
103
103
tmp_path : Path , monkeypatch : pytest .MonkeyPatch , capsys : pytest .CaptureFixture [str ]
104
104
):
105
105
monkeypatch .chdir (tmp_path )
106
- monkeypatch .setattr (sys , "argv" , [tmp_path / "flake8_trio " ])
106
+ monkeypatch .setattr (sys , "argv" , [tmp_path / "flake8-trio " ])
107
107
assert main () == 1
108
108
out , err = capsys .readouterr ()
109
109
assert err == "Doesn't seem to be a git repo; pass filenames to format.\n "
@@ -116,7 +116,7 @@ def test_run_100_autofix(
116
116
write_examplepy (tmp_path )
117
117
monkeypatch .chdir (tmp_path )
118
118
monkeypatch .setattr (
119
- sys , "argv" , [tmp_path / "flake8_trio " , "--autofix=TRIO" , "./example.py" ]
119
+ sys , "argv" , [tmp_path / "flake8-trio " , "--autofix=TRIO" , "./example.py" ]
120
120
)
121
121
assert main () == 1
122
122
@@ -256,7 +256,7 @@ def test_enable(
256
256
):
257
257
write_examplepy (tmp_path )
258
258
monkeypatch .chdir (tmp_path )
259
- argv = [tmp_path / "flake8_trio " , "./example.py" ]
259
+ argv = [tmp_path / "flake8-trio " , "./example.py" ]
260
260
monkeypatch .setattr (sys , "argv" , argv )
261
261
262
262
def _helper (* args : str , error : bool = False , autofix : bool = False ) -> None :
0 commit comments