Skip to content

Commit af56b80

Browse files
author
Joel Collins
committed
Removed LabThing.owns_endpoint
1 parent cb4d1a3 commit af56b80

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/labthings/labthing.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -508,14 +508,6 @@ def url_for(self, view, **values):
508508
values["_external"] = True
509509
return url_for(endpoint, **values)
510510

511-
def owns_endpoint(self, endpoint):
512-
"""
513-
514-
:param endpoint:
515-
516-
"""
517-
return endpoint in self.endpoints
518-
519511
def add_root_link(self, view, rel, kwargs=None, params=None):
520512
"""
521513

tests/test_labthing.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,6 @@ def test_url_for(thing, view_cls, app_ctx):
192192
)
193193

194194

195-
def test_owns_endpoint(thing, view_cls, app_ctx):
196-
assert not thing.owns_endpoint("index")
197-
thing.add_view(view_cls, "/index", endpoint="index")
198-
assert thing.owns_endpoint("index")
199-
200-
201195
def test_add_root_link(thing, view_cls, app_ctx, schemas_path):
202196
thing.add_root_link(view_cls, "rel")
203197
assert {

0 commit comments

Comments
 (0)