tests: add a check in tests for the pip warning
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
@@ -20,7 +20,7 @@ basic_project = test_projects.new_c_project(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def test(tmp_path, build_frontend_env):
|
def test(tmp_path, build_frontend_env, capfd):
|
||||||
project_dir = tmp_path / "project"
|
project_dir = tmp_path / "project"
|
||||||
basic_project.generate(project_dir)
|
basic_project.generate(project_dir)
|
||||||
|
|
||||||
@@ -31,6 +31,10 @@ def test(tmp_path, build_frontend_env):
|
|||||||
expected_wheels = utils.expected_wheels("spam", "0.1.0")
|
expected_wheels = utils.expected_wheels("spam", "0.1.0")
|
||||||
assert set(actual_wheels) == set(expected_wheels)
|
assert set(actual_wheels) == set(expected_wheels)
|
||||||
|
|
||||||
|
# Verify pip warning not shown
|
||||||
|
captured = capfd.readouterr()
|
||||||
|
assert "WARNING: Running pip as the 'root' user can result" not in captured.err
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip(reason="to keep test output clean")
|
@pytest.mark.skip(reason="to keep test output clean")
|
||||||
def test_sample_build(tmp_path, capfd):
|
def test_sample_build(tmp_path, capfd):
|
||||||
|
|||||||
Reference in New Issue
Block a user