pytest_gee#
The init file of the package.
Submodules#
Attributes#
Functions#
Initialize earth engine according using a service account. |
|
Initialize earth engine according using a token. |
|
|
Wait until the selected process is finished or we reached timeout value. |
Package Contents#
- pytest_gee.init_ee_from_service_account()[source]#
Initialize earth engine according using a service account.
The environment used to run the tests need to have a EARTHENGINE_SERVICE_ACCOUNT variable. The content of this variable must be the copy of a personal credential file that you can generate from the google cloud console.
Note
As all init method of
pytest-gee, this method will fallback to a regularee.Initializeusing theEARTHENGINE_PROJECTenvironment variable.
- pytest_gee.init_ee_from_token()[source]#
Initialize earth engine according using a token.
THe environment used to run the tests need to have a EARTHENGINE_TOKEN variable. The content of this variable must be the copy of a personal credential file that you can find on your local computer if you already run the earth engine command line tool. See the usage question for a github action example.
Windows:
C:\Users\USERNAME\\.config\\earthengine\\credentialsLinux:
/home/USERNAME/.config/earthengine/credentialsMacOS:
/Users/USERNAME/.config/earthengine/credentials
Note
As all init method of pytest-gee, this method will fallback to a regular
ee.Initialize()if the environment variable is not found e.g. on your local computer.