Skip to content

Commit a91c53f

Browse files
feat: weather forecast - move feat to internal
1 parent e88596c commit a91c53f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/routers/weather_forecast.py renamed to app/internal/weather_forecast.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def validate_date_input(requested_date):
4646
def freezeargs(func):
4747
"""Transform mutable dictionary into immutable
4848
Credit to 'fast_cen' from 'stackoverflow'
49+
https://stackoverflow.com/questions/6358481/
50+
using-functools-lru-cache-with-dictionary-arguments
4951
"""
5052
@functools.wraps(func)
5153
def wrapped(*args, **kwargs):

tests/test_weather_forecast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import requests
44
import responses
55

6-
from app.routers.weather_forecast import get_weather_data
6+
from app.internal.weather_forecast import get_weather_data
77

88

99
HISTORY_URL = "https://visual-crossing-weather.p.rapidapi.com/history"

0 commit comments

Comments
 (0)