Skip to content

Commit f1efa97

Browse files
committed
Back to 100% coverage
Test url schema correction in NetboxAPI
1 parent 84c7fdf commit f1efa97

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ class TestNetboxAPI():
1616
def prepared_api(self):
1717
return NetboxAPI(self.url)
1818

19+
def test_url_sanitizer(self):
20+
complete_schema_url_netbox_api = NetboxAPI("http://test/api").url
21+
no_schema_url_netbox_api = NetboxAPI("test/api/").url
22+
23+
assert complete_schema_url_netbox_api == no_schema_url_netbox_api
24+
1925
def test_build_model_route(self, prepared_api):
2026
app = "test_app"
2127
model = "test_model"

0 commit comments

Comments
 (0)