summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/test_config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/test_config.py b/testing/test_config.py
index eadbaf3..742605e 100644
--- a/testing/test_config.py
+++ b/testing/test_config.py
@@ -18,3 +18,10 @@ def test_tag_regex(tag, expected_version):
match = config.tag_regex.match(tag)
version = match.group("version")
assert version == expected_version
+
+
+def test_config_from_pyproject(tmpdir):
+ fn = tmpdir / 'pyproject.toml'
+ fn.write_text('[setuptools_scm]\nenabled = true\n', encoding='utf-8')
+ config = Configuration.from_file(str(fn))
+ assert config.enabled