From 76fc4b3a854d7d020f793b2239bea40a7a2d070b Mon Sep 17 00:00:00 2001 From: larkee Date: Mon, 19 Jul 2021 14:12:33 +1000 Subject: [PATCH 1/2] test: skip failing query_options sample --- samples/samples/snippets_test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/samples/snippets_test.py b/samples/samples/snippets_test.py index 34b7641961..3cbdd5c694 100644 --- a/samples/samples/snippets_test.py +++ b/samples/samples/snippets_test.py @@ -444,6 +444,10 @@ def test_query_data_with_query_options(capsys): assert "VenueId: 42, VenueName: Venue 42, LastUpdateTime:" in out +@pytest.skip( + "Failure is due to the package being missing on the backend." + "See: https://github.com/googleapis/python-spanner/issues/421" +) def test_create_client_with_query_options(capsys): snippets.create_client_with_query_options(INSTANCE_ID, DATABASE_ID) out, _ = capsys.readouterr() From 1c9b539641d960b16539854bd02f2f75eddd1c5d Mon Sep 17 00:00:00 2001 From: larkee Date: Mon, 19 Jul 2021 14:31:34 +1000 Subject: [PATCH 2/2] test: fix skip decorator call --- samples/samples/snippets_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/samples/snippets_test.py b/samples/samples/snippets_test.py index 3cbdd5c694..0b235e23ac 100644 --- a/samples/samples/snippets_test.py +++ b/samples/samples/snippets_test.py @@ -444,7 +444,7 @@ def test_query_data_with_query_options(capsys): assert "VenueId: 42, VenueName: Venue 42, LastUpdateTime:" in out -@pytest.skip( +@pytest.mark.skip( "Failure is due to the package being missing on the backend." "See: https://github.com/googleapis/python-spanner/issues/421" )