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
Labelbox uses API keys to validate requests. You can create and manage API keys on [Labelbox](https://app.labelbox.com/account/api-keys). Pass your API key as an environment variable. Then, import and initialize the API Client.
57
57
58
58
```
59
-
user@machine:~$ export LABELBOX_API_KEY="<your api key here>"
59
+
user@machine:~$ export LABELBOX_TEST_API_KEY_LOCAL="<your local api key here>"
60
60
user@machine:~$ python3
61
61
62
62
from labelbox import Client
@@ -68,17 +68,25 @@ Please consult `CONTRIB.md`
68
68
69
69
## Testing
70
70
1. Update the `Makefile` with your `local`, `staging`, `prod` API key. Ensure that docker has been installed on your system. Make sure the key is not from a free tier account.
71
-
2. To test on `staging`:
71
+
2. To test on `local`:
72
72
```
73
-
make test-staging PATH_TO_TEST=tests/integration/...etc LABELBOX_TEST_API_KEY=specify_here_or_export_me
73
+
user@machine:~$ export LABELBOX_TEST_API_KEY_LOCAL="<your local api key here>"
74
+
make test-local # with an optional flag: PATH_TO_TEST=tests/integration/...etc LABELBOX_TEST_API_KEY=specify_here_or_export_me
74
75
```
75
76
76
-
3. To test on `prod`:
77
+
3. To test on `staging`:
77
78
```
78
-
make test-prod PATH_TO_TEST=tests/integration/...etc LABELBOX_TEST_API_KEY=specify_here_or_export_me
79
+
user@machine:~$ export LABELBOX_TEST_API_KEY_STAGING="<your staging api key here>"
80
+
make test-staging # with an optional flag: PATH_TO_TEST=tests/integration/...etc LABELBOX_TEST_API_KEY=specify_here_or_export_me
79
81
```
80
82
81
-
4. If you make any changes and need to rebuild the image used for testing, force a rebuild with the `-B` flag
83
+
4. To test on `prod`:
84
+
```
85
+
user@machine:~$ export LABELBOX_TEST_API_KEY_PROD="<your prod api key here>"
86
+
make test-prod # with an optional flag: PATH_TO_TEST=tests/integration/...etc LABELBOX_TEST_API_KEY=specify_here_or_export_me
87
+
```
88
+
89
+
5. If you make any changes and need to rebuild the image used for testing, force a rebuild with the `-B` flag
0 commit comments