Skip to content

Commit

Permalink
Fixed incorrect test for init_show_server.
Browse files Browse the repository at this point in the history
  • Loading branch information
interpret-ml committed Jun 4, 2019
1 parent bf21e5d commit c0455c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/python/interpret/test/test_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ def test_init_show_server(explanation):
base_url = "proxy/{0}".format(port)

init_show_server(addr=target_addr, base_url=base_url, use_relative_links=False)
show(explanation)
url = show_link(explanation)

try:
requests.get(url)
response = requests.get(url)
assert response.status_code == 200
success = True
except requests.exceptions.RequestException:
success = False
Expand Down Expand Up @@ -125,7 +127,8 @@ def test_show(explanation):
url = show_link(explanation_li)

try:
requests.get(url)
response = requests.get(url)
assert response.status_code == 200
success = True
except requests.exceptions.RequestException:
success = False
Expand Down

0 comments on commit c0455c0

Please sign in to comment.