feat: print new files after building (#570)

This commit is contained in:
Henry Schreiner
2021-02-04 14:27:54 -05:00
committed by GitHub
parent 08401d6608
commit e12ce2d647
4 changed files with 78 additions and 9 deletions
+10
View File
@@ -1,3 +1,4 @@
import contextlib
import platform as platform_module
import subprocess
import sys
@@ -58,6 +59,15 @@ def fake_package_dir(monkeypatch):
return args
@pytest.fixture(autouse=True)
def disable_print_wheels(monkeypatch):
@contextlib.contextmanager
def empty_cm(*args, **kwargs):
yield
monkeypatch.setattr(util, 'print_new_wheels', empty_cm)
@pytest.fixture
def allow_empty(request, monkeypatch, fake_package_dir):
monkeypatch.setattr(sys, 'argv', fake_package_dir + ['--allow-empty'])