Skip to content

Commit

Permalink
Fix reference to our testing tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Wayne Parrott committed Apr 12, 2017
1 parent 3450743 commit 9c3c073
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 32 deletions.
2 changes: 1 addition & 1 deletion appengine/standard/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import os

# Import py.test hooks and fixtures for App Engine
from gcp.testing.appengine import (
from gcp_devrel.testing.appengine import (
login,
pytest_configure,
pytest_runtest_call,
Expand Down
2 changes: 1 addition & 1 deletion bigquery/api/export_data_to_cloud_storage_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import os

from gcp.testing.flaky import flaky
from gcp_devrel.testing.flaky import flaky

from export_data_to_cloud_storage import main

Expand Down
2 changes: 1 addition & 1 deletion bigquery/api/load_data_by_post_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import os
import re

from gcp.testing.flaky import flaky
from gcp_devrel.testing.flaky import flaky

from load_data_by_post import load_data

Expand Down
2 changes: 1 addition & 1 deletion bigquery/api/load_data_from_csv_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import os

from gcp.testing.flaky import flaky
from gcp_devrel.testing.flaky import flaky

from load_data_from_csv import main

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import os

from gcp.testing.flaky import flaky
from gcp_devrel.testing.flaky import flaky

from blog import main

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import os

from gcp.testing.flaky import flaky
from gcp_devrel.testing.flaky import flaky

from wiki import main

Expand Down
2 changes: 1 addition & 1 deletion compute/api/create_instance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import os
import re

from gcp.testing.flaky import flaky
from gcp_devrel.testing.flaky import flaky

from create_instance import main

Expand Down
2 changes: 1 addition & 1 deletion dataproc/dataproc_e2e_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import os

from gcp.testing.flaky import flaky
from gcp_devrel.testing.flaky import flaky

import create_cluster_and_submit_job

Expand Down
4 changes: 2 additions & 2 deletions datastore/cloud-client/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

import os

from gcp.testing import eventually_consistent
from gcp.testing.flaky import flaky
from gcp_devrel.testing import eventually_consistent
from gcp_devrel.testing.flaky import flaky
from google.cloud import datastore
import pytest

Expand Down
4 changes: 2 additions & 2 deletions datastore/cloud-client/tasks_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

import os

from gcp.testing import eventually_consistent
from gcp.testing.flaky import flaky
from gcp_devrel.testing import eventually_consistent
from gcp_devrel.testing.flaky import flaky
from google.cloud import datastore
import pytest

Expand Down
2 changes: 1 addition & 1 deletion dns/api/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import os

from gcp.testing.flaky import flaky
from gcp_devrel.testing.flaky import flaky
from google.cloud import dns
import pytest

Expand Down
2 changes: 1 addition & 1 deletion iap/iap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

"""Test script for Identity-Aware Proxy code samples."""

from gcp.testing.flaky import flaky
from gcp_devrel.testing.flaky import flaky

import make_iap_request
import validate_jwt
Expand Down
2 changes: 1 addition & 1 deletion logging/cloud-client/export_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import random
import string

from gcp.testing import eventually_consistent
from gcp_devrel.testing import eventually_consistent
from google.cloud import logging
import pytest

Expand Down
2 changes: 1 addition & 1 deletion logging/cloud-client/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcp.testing import eventually_consistent
from gcp_devrel.testing import eventually_consistent
from google.cloud import logging
import pytest

Expand Down
4 changes: 2 additions & 2 deletions monitoring/api/v3/api-client/custom_metric_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import random
import time

from gcp.testing import eventually_consistent
from gcp.testing.flaky import flaky
from gcp_devrel.testing import eventually_consistent
from gcp_devrel.testing.flaky import flaky
import googleapiclient.discovery
import pytest

Expand Down
2 changes: 1 addition & 1 deletion monitoring/api/v3/api-client/list_resources_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import os
import re

from gcp.testing.flaky import flaky
from gcp_devrel.testing.flaky import flaky
import googleapiclient.discovery
import pytest

Expand Down
2 changes: 1 addition & 1 deletion monitoring/api/v3/cloud-client/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcp.testing import eventually_consistent
from gcp_devrel.testing import eventually_consistent

import snippets

Expand Down
11 changes: 3 additions & 8 deletions nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def _determine_local_import_names(start_dir):
# App Engine specific helpers
#


_GAE_ROOT = os.environ.get('GAE_ROOT')
if _GAE_ROOT is None:
_GAE_ROOT = tempfile.mkdtemp()
Expand Down Expand Up @@ -143,10 +144,6 @@ def _setup_appengine_sdk(session):
'--exclude', '.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py',
]

# Location of our common testing utilities. This isn't published to PyPI.
GCP_REPO_TOOLS_REQ =\
'git+https://github.com/GoogleCloudPlatform/python-repo-tools.git'


# Collect sample directories.
ALL_TESTED_SAMPLES = sorted(list(_collect_dirs('.')))
Expand Down Expand Up @@ -177,7 +174,6 @@ def _setup_appengine_sdk(session):
def _session_tests(session, sample):
"""Runs py.test for a particular sample."""
session.install('-r', 'testing/requirements.txt')
session.install(GCP_REPO_TOOLS_REQ)

session.chdir(sample)

Expand All @@ -197,7 +193,6 @@ def _session_tests(session, sample):
def session_gae(session, sample):
"""Runs py.test for an App Engine standard sample."""
session.interpreter = 'python2.7'
session.install(GCP_REPO_TOOLS_REQ)
_setup_appengine_sdk(session)

# Create a lib directory if needed, otherwise the App Engine vendor library
Expand Down Expand Up @@ -271,7 +266,7 @@ def session_check_requirements(session):
This is intentionally not parametric, as it's desired to never have two
samples with differing versions of dependencies.
"""
session.install(GCP_REPO_TOOLS_REQ)
session.install('-r', 'testing/requirements.txt')

if 'update' in session.posargs:
command = 'update-requirements'
Expand All @@ -281,4 +276,4 @@ def session_check_requirements(session):
reqfiles = list(_list_files('.', 'requirements*.txt'))

for reqfile in reqfiles:
session.run('gcprepotools', command, reqfile)
session.run('gcp-devrel-py-tools check-requirements', command, reqfile)
2 changes: 1 addition & 1 deletion pubsub/cloud-client/publisher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcp.testing import eventually_consistent
from gcp_devrel.testing import eventually_consistent
from google.cloud import pubsub
import pytest

Expand Down
2 changes: 1 addition & 1 deletion pubsub/cloud-client/subscriber_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from gcp.testing import eventually_consistent
from gcp_devrel.testing import eventually_consistent
from google.cloud import pubsub
import pytest

Expand Down
2 changes: 1 addition & 1 deletion spanner/cloud-client/snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import random
import string

from gcp.testing import eventually_consistent
from gcp_devrel.testing import eventually_consistent
from google.cloud import spanner
import pytest

Expand Down
2 changes: 1 addition & 1 deletion storage/api/customer_supplied_keys_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import os
import re

from gcp.testing.flaky import flaky
from gcp_devrel.testing.flaky import flaky

from customer_supplied_keys import main

Expand Down
1 change: 1 addition & 0 deletions testing/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ WebTest==2.0.25
webapp2==2.5.2
google-api-python-client==1.6.2
google-cloud-core==0.23.0
gcp-devrel-py-tools==0.0.1

0 comments on commit 9c3c073

Please sign in to comment.