Skip to content

Commit c0aadf2

Browse files
committed
simplify imports in test_helpers
1 parent 9081b9b commit c0aadf2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_helpers.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import pytest
22

33
import stagpy
4-
import stagpy._helpers
54
from stagpy import _helpers
65
from stagpy.config import Config
76
from stagpy.stagyydata import StagyyData
@@ -19,12 +18,12 @@ def test_out_name_conf() -> None:
1918
oname = "something_fancy"
2019
stagpy.conf.core.outname = oname
2120
stem = "teapot"
22-
assert stagpy._helpers.out_name(stem) == oname + "_" + stem
21+
assert _helpers.out_name(stem) == oname + "_" + stem
2322
del stagpy.conf.core.outname
2423

2524

2625
def test_out_name_number() -> None:
27-
assert stagpy._helpers.out_name("T", 123) == "stagpy_T00123"
26+
assert _helpers.out_name("T", 123) == "stagpy_T00123"
2827

2928

3029
def test_baredoc() -> None:
@@ -35,4 +34,4 @@ def test_baredoc() -> None:
3534
3635
"""
3736
expected = "Badly formatted docstring"
38-
assert stagpy._helpers.baredoc(test_baredoc) == expected
37+
assert _helpers.baredoc(test_baredoc) == expected

0 commit comments

Comments
 (0)