From a712de7cd2537bf273524dfd19489d96df68a8e0 Mon Sep 17 00:00:00 2001 From: Matthew Willcockson Date: Sat, 4 Dec 2021 07:09:42 -0600 Subject: [PATCH] test: update namespace test --- tests/test_build.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/test_build.py b/tests/test_build.py index 18fdefae..9cd83d20 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -73,9 +73,15 @@ def test_build_wheel_only(copy_sample): def test_build_ns_main(copy_sample): td = copy_sample('ns1-pkg') (td / '.git').mkdir() # Fake a git repo - - with MockCommand('git', LIST_FILES_TEMPLATE.format( - python=sys.executable, module='ns1/pkg/__init__.py')): + tracked = [ + 'EG_README.rst', + 'ns1/pkg/__init__.py', + 'pyproject.toml', + ] + untracked_deleted = ['dist/ns1.pkg-0.1.tar.gz'] + + with MockCommand('git', make_git_script(tracked=tracked, + untracked_deleted=untracked_deleted)): res = build.main(td / 'pyproject.toml') assert res.wheel.file.suffix == '.whl' assert res.sdist.file.name.endswith('.tar.gz')