Skip to content

Commit e78787b

Browse files
committed
💄 beautify the test_setup.py
1 parent 23026aa commit e78787b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def test_setup():
1818

1919
def test_setup_use_markers_true():
2020
filename = "setup.py.jj2"
21-
with open(os.path.join("tests", "fixtures", "server_use_marker_true.yml")) as f:
21+
config = os.path.join("tests", "fixtures", "server_use_marker_true.yml")
22+
with open(config) as f:
2223
content = f.read()
2324
yaml = YAML(typ="safe")
2425
context = yaml.load(content)
@@ -29,7 +30,8 @@ def test_setup_use_markers_true():
2930

3031
def test_setup_use_markers_false():
3132
filename = "setup.py.jj2"
32-
with open(os.path.join("tests", "fixtures", "server_use_marker_false.yml")) as f:
33+
config = os.path.join("tests", "fixtures", "server_use_marker_false.yml")
34+
with open(config) as f:
3335
content = f.read()
3436
yaml = YAML(typ="safe")
3537
context = yaml.load(content)

0 commit comments

Comments
 (0)