Skip to content

Commit b6ed141

Browse files
committed
Use connection.web_editor for better naming consistency
(instead of "webditor")
1 parent b259e9a commit b6ed141

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Added `show_error_logs` argument to `cube.execute_batch()`/`job.start_and_wait()`/... to toggle the automatic printing of error logs on failure ([#505](https://github.com/Open-EO/openeo-python-client/issues/505))
13-
- Added `Connection.webeditor()` to build link to the openEO backend in the openEO Web Editor
13+
- Added `Connection.web_editor()` to build link to the openEO backend in the openEO Web Editor
1414

1515
### Changed
1616

openeo/rest/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,7 @@ def version_info(self):
19681968
}),
19691969
}
19701970

1971-
def webeditor(self, *, editor_url: str = "https://editor.openeo.org/", anonymous: bool = False) -> str:
1971+
def web_editor(self, *, editor_url: str = "https://editor.openeo.org/", anonymous: bool = False) -> str:
19721972
"""
19731973
Generate URL to open this backend in the openEO Web Editor.
19741974
"""

tests/rest/test_connection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4012,8 +4012,8 @@ def test_create_job_intermediate_resultst(self, con120, dummy_backend):
40124012
}
40134013

40144014

4015-
def test_webeditor(requests_mock):
4015+
def test_web_editor(requests_mock):
40164016
requests_mock.get(API_URL, json=build_capabilities())
40174017
con = Connection(API_URL)
4018-
assert con.webeditor() == "https://editor.openeo.org/?server=https%3A%2F%2Foeo.test%2F"
4019-
assert con.webeditor(anonymous=True) == "https://editor.openeo.org/?server=https%3A%2F%2Foeo.test%2F&discover=1"
4018+
assert con.web_editor() == "https://editor.openeo.org/?server=https%3A%2F%2Foeo.test%2F"
4019+
assert con.web_editor(anonymous=True) == "https://editor.openeo.org/?server=https%3A%2F%2Foeo.test%2F&discover=1"

0 commit comments

Comments
 (0)