File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,17 @@ def FooBarConverter_(in_file: Foo):
22
22
return FooBarConverter_
23
23
24
24
25
- def baz_bar_converter ():
25
+ @pytest .fixture
26
+ def BazBarConverter ():
26
27
work_dir = Path (tempfile .mkdtemp ())
27
28
28
29
@converter (out_file = "out" )
29
30
@python .define (outputs = {"out" : Bar }) # type: ignore[misc]
30
- def baz_bar_converter_ (in_file : Baz ):
31
+ def BazBarConverter_ (in_file : Baz ):
31
32
assert in_file
32
33
return Bar (write_test_file (work_dir / "bar.bar" , in_file .raw_contents ))
33
34
34
- return baz_bar_converter_
35
+ return BazBarConverter_
35
36
36
37
37
38
@pytest .fixture
@@ -96,7 +97,7 @@ def test_convert_shellcmd(FooQuxConverter, work_dir):
96
97
assert qux .raw_contents == foo .raw_contents
97
98
98
99
99
- def test_convert_mapped_conversion (baz_bar_converter , work_dir ):
100
+ def test_convert_mapped_conversion (BazBarConverter , work_dir ):
100
101
101
102
fspath = work_dir / "test.baz"
102
103
write_test_file (fspath )
You can’t perform that action at this time.
0 commit comments