From d9e1055d0946a34f9903369522881c8b53f49671 Mon Sep 17 00:00:00 2001 From: James Ennis Date: Wed, 28 Aug 2019 12:37:22 +0100 Subject: _stream.py: Remove separate handling of ArtifactElements ArtifactElement inherits Element, both have an Artifact object as a member, thus we should not need to handle these separately. This change has resulted in introducing a configure_sandbox() method in ArtifactElement. The method is similar to BuildElement.configure_sandbox() but does not configure the sandbox to actually be used for building. --- tests/frontend/buildcheckout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/frontend/buildcheckout.py') diff --git a/tests/frontend/buildcheckout.py b/tests/frontend/buildcheckout.py index 6281217b7..72974a620 100644 --- a/tests/frontend/buildcheckout.py +++ b/tests/frontend/buildcheckout.py @@ -358,7 +358,7 @@ def test_build_checkout_invalid_ref(datafiles, cli): checkout_args = ['artifact', 'checkout', '--deps', 'none', '--tar', checkout, non_existent_artifact] result = cli.run(project=project, args=checkout_args) - assert "Artifact reference '{}' seems to be invalid".format(non_existent_artifact) in result.stderr + assert "Error while staging dependencies into a sandbox: 'No artifacts to stage'" in result.stderr @pytest.mark.datafiles(DATA_DIR) -- cgit v1.2.1