Skip to content

Commit 44980ec

Browse files
authored
Merge pull request #26 from templateflow/enh/add-tests
ENH: Add one more test to increase code coverage, assess new CI pipeline
2 parents 49a2ebd + 5cc9f1f commit 44980ec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

templateflow/conf/tests/test_conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,12 @@ def test_update_home(monkeypatch, tmp_path, capsys, use_datalad):
8181
out = capsys.readouterr()[0]
8282
assert updated is True
8383
assert out.startswith("Updating TemplateFlow's HOME using S3.")
84+
85+
86+
def test_layout(monkeypatch, tmp_path):
87+
monkeypatch.setenv('TEMPLATEFLOW_USE_DATALAD', 'off')
88+
89+
lines = ('%s' % tfc.TF_LAYOUT).splitlines()
90+
assert lines[0] == "TemplateFlow Layout"
91+
assert lines[1] == " - Home: %s" % tfc.TF_HOME
92+
assert lines[2].startswith(" - Templates:")

0 commit comments

Comments
 (0)