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

weather_api_test.py 167 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
  1. import requests
  2. def test_api_returns_200():
  3. url = "https://api.open-meteo.com/v1/forecast"
  4. response = requests.get(url)
  5. assert response.status_code == 200
Tip!

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

Comments

Loading...