Skip to content

Commit

Permalink
Update API test to use more stable API
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Kidman committed May 21, 2021
1 parent c504301 commit ebad057
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ui/test_pydriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ def test_jit_webdriver(py: Pylenium):


def test_py_request(py: Pylenium):
response = py.request.get('https://statsroyale.com/api/cards')
response = py.request.get('https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1')
assert response.ok
assert response.json()[0]['name']
assert response.json()['success']


def test_execute_script(py: Pylenium):
Expand All @@ -35,7 +35,7 @@ def test_cookies(py: Pylenium):
'name': 'foo',
'path': '/',
'secure': True,
'value': 'bar'
'value': 'bar',
}
py.visit('https://google.com')

Expand Down

0 comments on commit ebad057

Please sign in to comment.