summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorxoviat <xoviat@users.noreply.github.com>2017-09-07 21:58:50 -0500
committerxoviat <xoviat@users.noreply.github.com>2017-09-07 21:58:50 -0500
commit97ddc77ed2787e67e76d090d338e1d2a67336f16 (patch)
treea7c91dcf7a82894eb54f39af1c99a5afd8067429 /setuptools/tests
parentddd5d0a9bc0f5b37915ee03fbdc87f1b04529458 (diff)
downloadpython-setuptools-git-97ddc77ed2787e67e76d090d338e1d2a67336f16.tar.gz
tests: implement prepare_metadata
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_pep517.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/setuptools/tests/test_pep517.py b/setuptools/tests/test_pep517.py
index f2438b6a..b9a75dbd 100644
--- a/setuptools/tests/test_pep517.py
+++ b/setuptools/tests/test_pep517.py
@@ -103,4 +103,13 @@ def test_build_sdist(build_backend):
os.makedirs(dist_dir)
sdist_name = b.build_sdist(dist_dir)
- assert os.path.isfile(os.path.join(dist_dir, sdist_name)) \ No newline at end of file
+ assert os.path.isfile(os.path.join(dist_dir, sdist_name))
+
+def test_prepare_metadata_for_build_wheel(build_backend):
+ with build_backend as b:
+ dist_dir = os.path.abspath('pip-dist-info')
+ os.makedirs(dist_dir)
+
+ b.prepare_metadata_for_build_wheel()
+
+ assert os.path.isfile(os.path.join(dist_dir, 'METADATA'))