diff options
| author | Ionel Cristian Mărieș <contact@ionelmc.ro> | 2019-05-10 14:43:31 +0300 |
|---|---|---|
| committer | Ionel Cristian Mărieș <contact@ionelmc.ro> | 2019-05-10 14:45:33 +0300 |
| commit | 686a26db8bb953a0a450e4e2b94d155c0ef28618 (patch) | |
| tree | d273b874c2feee1aec73e1228c6d3281ed7fc02c /testing/test_basic_api.py | |
| parent | ea4a6e5eb885a2f013e1b3e5374476dceec2a2fa (diff) | |
| download | setuptools-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.py | 3 |
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 |
