Skip to content

Commit 69249ff

Browse files
committed
one more pytest fixture
1 parent 36b7e24 commit 69249ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

extras/fileformats/extras/core/tests/test_converter.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,17 @@ def FooBarConverter_(in_file: Foo):
2222
return FooBarConverter_
2323

2424

25-
def baz_bar_converter():
25+
@pytest.fixture
26+
def BazBarConverter():
2627
work_dir = Path(tempfile.mkdtemp())
2728

2829
@converter(out_file="out")
2930
@python.define(outputs={"out": Bar}) # type: ignore[misc]
30-
def baz_bar_converter_(in_file: Baz):
31+
def BazBarConverter_(in_file: Baz):
3132
assert in_file
3233
return Bar(write_test_file(work_dir / "bar.bar", in_file.raw_contents))
3334

34-
return baz_bar_converter_
35+
return BazBarConverter_
3536

3637

3738
@pytest.fixture
@@ -96,7 +97,7 @@ def test_convert_shellcmd(FooQuxConverter, work_dir):
9697
assert qux.raw_contents == foo.raw_contents
9798

9899

99-
def test_convert_mapped_conversion(baz_bar_converter, work_dir):
100+
def test_convert_mapped_conversion(BazBarConverter, work_dir):
100101

101102
fspath = work_dir / "test.baz"
102103
write_test_file(fspath)

0 commit comments

Comments
 (0)