You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TESTING.md
+10-11
Original file line number
Diff line number
Diff line change
@@ -46,27 +46,26 @@ The script will also instruct you to follow a URL to enable APIs. You will need
46
46
47
47
### Getting a service account key
48
48
49
-
From the Cloud Console, create a new Service Account and download its json key. Place this file in `testing/resources/service-account.json`.
49
+
From the Cloud Console, create a new Service Account and download its json key. Place this file in `testing/service-account.json`.
50
50
51
-
Create a new OAuth client ID. Create a file `testing/resources/client-secrets.json` and write the `client_id` and `client_secret` to the file in the [Client Secrets JSON format](https://developers.google.com/api-client-library/python/guide/aaa_client_secrets).
51
+
Create a new OAuth client ID. Create a file `testing/client-secrets.json` and write the `client_id` and `client_secret` to the file in the [Client Secrets JSON format](https://developers.google.com/api-client-library/python/guide/aaa_client_secrets).
52
52
53
53
## Environment variables
54
54
55
-
* Copy `testing/resources/test-env.tmpl.sh` to `testing/resources/test-env.sh`, and updated it with your configuration.
56
-
* Run `source testing/resources/test-env.sh`.
57
-
* Run `export GOOGLE_APPLICATION_CREDENTIALS=testing/resources/service-account.json`.
58
-
* Run `export GOOGLE_CLIENT_SECRETS=testing/resources/client-secrets.json`.
55
+
* Copy `testing/test-env.tmpl.sh` to `testing/test-env.sh`, and update it with your configuration.
56
+
* Run `source testing/test-env.sh`.
57
+
* Run `export GOOGLE_APPLICATION_CREDENTIALS=testing/service-account.json`.
58
+
* Run `export GOOGLE_CLIENT_SECRETS=testing/client-secrets.json`.
59
59
60
60
### Test environments
61
61
62
62
We use [nox](https://nox.readthedocs.org/en/latest/) to configure
63
63
multiple python sessions:
64
64
65
-
*``tests`` contains tests for samples that run in a normal Python 2.7 or 3.4
66
-
environment. This is everything outside of the ``appengine`` directory. It's
67
-
parameterized to run all the tests using the 2.7 and 3.4 interpreters.
65
+
*``tests`` Run all the tests for every sample. It's parameterized to run all
66
+
the tests using the 2.7 and 3.5 interpreters.
68
67
*``gae`` contains tests for samples that run only in Google App Engine. This is
69
-
(mostly) everything in the ``appengine`` directory.
68
+
everything in the ``appengine`` directory.
70
69
*``lint`` just runs the linter.
71
70
72
71
To see a list of the available sessions:
@@ -81,7 +80,7 @@ with the ``-s`` flag:
81
80
To run one particular session or provide additional parameters to ``py.test``,
82
81
invoke nox like this:
83
82
84
-
nox -s tests -- storage/api
83
+
nox -s tests -- storage/cloud-client
85
84
86
85
### Adding new tests
87
86
When adding a new top-level directory, be sure to edit ``.coveragerc`` to
0 commit comments