Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ RELEASING:
### Fixed
- Delete annotations when plugin is uninstalled ([#346](https://github.com/GIScience/orstools-qgis-plugin/issues/346))
- Reset hand cursor after deactivating line tool ([#342](https://github.com/GIScience/orstools-qgis-plugin/issues/342))
- Check API key being set before running tests ([#358](https://github.com/GIScience/orstools-qgis-plugin/issues/358))

## [2.0.1] - 2025-06-01
### Added
Expand Down
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ def pytest_sessionstart(session):
Called after the Session object has been created and
before performing collection and entering the run test loop.
"""
if not os.environ.get("ORS_API_KEY"):
raise ValueError(
"No API key found in environment variables. Please set ORS_API_KEY environment variable to run tests."
)
if data["providers"][0]["key"] == "":
data["providers"][0]["key"] = os.environ.get("ORS_API_KEY")
s.setValue("ORStools/config", data)
Expand Down