Skip to content

Commit

Permalink
Back to 100% coverage
Browse files Browse the repository at this point in the history
Test url schema correction in NetboxAPI
  • Loading branch information
aruhier committed Jun 7, 2017
1 parent 84c7fdf commit f1efa97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ class TestNetboxAPI():
def prepared_api(self):
return NetboxAPI(self.url)

def test_url_sanitizer(self):
complete_schema_url_netbox_api = NetboxAPI("http://test/api").url

This comment has been minimized.

Copy link
@Taeclimax

Taeclimax Oct 22, 2017

Fix

no_schema_url_netbox_api = NetboxAPI("test/api/").url

assert complete_schema_url_netbox_api == no_schema_url_netbox_api

def test_build_model_route(self, prepared_api):
app = "test_app"
model = "test_model"
Expand Down

1 comment on commit f1efa97

@Taeclimax
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix to problem

Please sign in to comment.