Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
test deleting api key when none exists
Browse files Browse the repository at this point in the history
  • Loading branch information
monty5811 committed Aug 6, 2016
1 parent cf1f6ce commit a019df9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/functional_tests/apostello/test_api_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ def test_api_setup(self, live_server, browser_in, users, driver_wait_time):
no_api_token_txt = 'No API Token'
b = browser_in
browser_in.get(live_server + URI)
# delete token that doesn't exist
del_button = b.find_elements_by_xpath(
'/html/body/div[3]/div/div/div/div[2]/form[2]/button'
)[0]
del_button.click()
sleep(driver_wait_time)
assert no_api_token_txt in b.page_source
# generate token for first time
assert no_api_token_txt in b.page_source
regen_button = b.find_elements_by_xpath(
Expand Down

0 comments on commit a019df9

Please sign in to comment.