diff --git a/.kokoro/common.cfg b/.kokoro/common.cfg index 4af0df96..f8bcdf12 100644 --- a/.kokoro/common.cfg +++ b/.kokoro/common.cfg @@ -11,3 +11,8 @@ env_vars: { key: "TRAMPOLINE_IMAGE" value: "gcr.io/cloud-devrel-kokoro-resources/python@sha256:4b6ba8c199e96248980db4538065cddeea594138b9b9fb2d0388603922087747" } + +env_vars: { + key: "GCLOUD_PROJECT" + value: "python-docs-samples-tests" +} diff --git a/3-binary-data/tests/test_crud.py b/3-binary-data/tests/test_crud.py index c0d2f40f..b09e224b 100644 --- a/3-binary-data/tests/test_crud.py +++ b/3-binary-data/tests/test_crud.py @@ -40,7 +40,7 @@ def test_list(self, app, model): body = rv.data.decode('utf-8') assert 'Book 1' in body, "Should show books" - assert len(re.findall('

Book', body)) == 10, ( + assert len(re.findall('

Book', body)) <= 10, ( "Should not show more than 10 books") assert 'More' in body, "Should have more than one page" diff --git a/conftest.py b/conftest.py index 3df98777..b6078c07 100644 --- a/conftest.py +++ b/conftest.py @@ -17,8 +17,6 @@ import mock import pytest -PROJECT = 'python-docs-samples' - @pytest.fixture def api_client_inject_project_id(): diff --git a/noxfile.py b/noxfile.py index 0657ea43..7c337a60 100644 --- a/noxfile.py +++ b/noxfile.py @@ -16,7 +16,6 @@ '5-logging', '6-pubsub', '7-gce', - 'optional-kubernetes-engine' ] PYTEST_COMMON_ARGS = ['--junitxml=sponge_log.xml']