Skip to content
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.

Commit

Permalink
The minutely data block will be omitted, unless you are requesting a …
Browse files Browse the repository at this point in the history
…time within an hour of the present.
  • Loading branch information
ellisvalentiner committed Mar 25, 2018
1 parent fa308ff commit 5e4e374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ if haskey(ENV, "DARKSKY_API_KEY")
info("Dark Sky API key was found in your system environment variables, running tests...")
@test isa(forecast(42.3601, -71.0589), DarkSky.DarkSkyResponse)
@test isa(forecast(42.3601, -71.0589, exclude=["currently"], extend="hourly"), DarkSky.DarkSkyResponse)
response = forecast(42.3601, -71.0589, DateTime(2018, 1, 1, 0, 0, 0));
response = forecast(42.3601, -71.0589, DateTime(2018, 3, 7, 0, 0, 0));
@test isa(response, DarkSky.DarkSkyResponse)
@test latitude(response) === 42.3601
@test longitude(response) === -71.0589
@test timezone(response) == "America/New_York"
@test isa(currently(response), Dict{String, Any})
@test isa(minutely(response), Dict{String, Any})
@test isa(minutely(response), Void)
@test isa(daily(response), Dict{String, Any})
@test isa(alerts(response), Array{Any, 1}) | isa(alerts(response), Void)
@test isa(flags(response), Dict{String, Any})
Expand Down

0 comments on commit 5e4e374

Please sign in to comment.