Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

mbajk_api_test.py 289 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
  1. import requests
  2. def test_api_returns_200():
  3. contract = "maribor"
  4. api_key = "5e150537116dbc1786ce5bec6975a8603286526b"
  5. url = f"https://api.jcdecaux.com/vls/v1/stations?contract={contract}&apiKey={api_key}"
  6. response = requests.get(url)
  7. assert response.status_code == 200
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...