From ef2015096ac039f541be5401a39cf25477afefca Mon Sep 17 00:00:00 2001 From: James Ennis Date: Thu, 15 Aug 2019 09:27:02 +0100 Subject: Load artifact refs the same way we load element names --- tests/frontend/buildcheckout.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/frontend') diff --git a/tests/frontend/buildcheckout.py b/tests/frontend/buildcheckout.py index b83fc2f3d..98b179b9e 100644 --- a/tests/frontend/buildcheckout.py +++ b/tests/frontend/buildcheckout.py @@ -354,11 +354,11 @@ def test_build_checkout_invalid_ref(datafiles, cli): assert os.path.isdir(builddir) assert not os.listdir(builddir) - checkout_args = ['artifact', 'checkout', '--deps', 'none', '--tar', checkout, - 'test/checkout-deps/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'] - + non_existent_artifact = 'test/checkout-deps/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' + checkout_args = ['artifact', 'checkout', '--deps', 'none', '--tar', checkout, non_existent_artifact] result = cli.run(project=project, args=checkout_args) - assert "seems to be invalid. Note that an Element name can also be used." in result.stderr + + assert "{}\nis not present in the artifact cache".format(non_existent_artifact) in result.stderr @pytest.mark.datafiles(DATA_DIR) -- cgit v1.2.1