Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
francescpuig7 committed Sep 20, 2019
1 parent 7cb7309 commit f57c58a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/datetime/solar_hour_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@
dt = TIMEZONE.localize(datetime(2019, 11, 1, 1))
dt = convert_to_solar_hour(dt)
expect(dt.tzname()).to(start_with('UTC'))

with context("calculated correctly"):
with it("when civil hour not specified"):
dt = convert_to_solar_hour()
assert isinstance(dt, datetime)

0 comments on commit f57c58a

Please sign in to comment.