Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests locally by passing authentification file as argument to pytest #119

Closed
AdrienWehrle opened this issue Dec 4, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@AdrienWehrle
Copy link
Owner

Tests are currently exclusively ran by Github actions where Sentinel Hub credentials are retrieved through environmental variables. Let's add a command line argument to pytest to pass the local path to the credential file. Then, in test_earthspy.py, use the environmental variable if it is in os.environ, otherwise, access the path given by the user.

@AdrienWehrle AdrienWehrle added enhancement New feature or request good first issue Good for newcomers labels Dec 4, 2024
@AdrienWehrle
Copy link
Owner Author

closed by #106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant