summaryrefslogtreecommitdiff
path: root/testing/test_basic_api.py
diff options
context:
space:
mode:
authorIonel Cristian Mărieș <contact@ionelmc.ro>2019-05-10 14:43:31 +0300
committerIonel Cristian Mărieș <contact@ionelmc.ro>2019-05-10 14:45:33 +0300
commit686a26db8bb953a0a450e4e2b94d155c0ef28618 (patch)
treed273b874c2feee1aec73e1228c6d3281ed7fc02c /testing/test_basic_api.py
parentea4a6e5eb885a2f013e1b3e5374476dceec2a2fa (diff)
downloadsetuptools-scm-686a26db8bb953a0a450e4e2b94d155c0ef28618.tar.gz
Don't pass entrypoing name around anymore and allow passing fallback_root to get_version.
Diffstat (limited to 'testing/test_basic_api.py')
-rw-r--r--testing/test_basic_api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/test_basic_api.py b/testing/test_basic_api.py
index 5b5c6d6..f342e23 100644
--- a/testing/test_basic_api.py
+++ b/testing/test_basic_api.py
@@ -23,8 +23,9 @@ def test_data_from_mime(tmpdir):
assert res == {"name": "test", "revision": "1"}
-def test_version_from_pkginfo(wd):
+def test_version_from_pkginfo(wd, monkeypatch):
wd.write("PKG-INFO", "Version: 0.1")
+
assert wd.version == "0.1"
# replicate issue 167