@@ -50,7 +50,7 @@ def test_start_of_day():
5050 d = pendulum .now ()
5151 new = d .start_of ('day' )
5252 assert isinstance (new , pendulum .DateTime )
53- assert_datetime (new , d .year , d .month , d .day , 0 , 0 , 0 )
53+ assert_datetime (new , d .year , d .month , d .day , 0 , 0 , 0 , 0 )
5454
5555
5656def test_end_of_day ():
@@ -68,13 +68,13 @@ def test_start_of_month_is_fluid():
6868def test_start_of_month_from_now ():
6969 d = pendulum .now ()
7070 new = d .start_of ('month' )
71- assert_datetime (new , d .year , d .month , 1 , 0 , 0 , 0 )
71+ assert_datetime (new , d .year , d .month , 1 , 0 , 0 , 0 , 0 )
7272
7373
7474def test_start_of_month_from_last_day ():
7575 d = pendulum .datetime (2000 , 1 , 31 , 2 , 3 , 4 )
7676 new = d .start_of ('month' )
77- assert_datetime (new , 2000 , 1 , 1 , 0 , 0 , 0 )
77+ assert_datetime (new , 2000 , 1 , 1 , 0 , 0 , 0 , 0 )
7878
7979
8080def test_start_of_year_is_fluid ():
@@ -86,32 +86,26 @@ def test_start_of_year_is_fluid():
8686def test_start_of_year_from_now ():
8787 d = pendulum .now ()
8888 new = d .start_of ('year' )
89- assert_datetime (new , d .year , 1 , 1 , 0 , 0 , 0 )
89+ assert_datetime (new , d .year , 1 , 1 , 0 , 0 , 0 , 0 )
9090
9191
9292def test_start_of_year_from_first_day ():
9393 d = pendulum .datetime (2000 , 1 , 1 , 1 , 1 , 1 )
9494 new = d .start_of ('year' )
95- assert_datetime (new , 2000 , 1 , 1 , 0 , 0 , 0 )
95+ assert_datetime (new , 2000 , 1 , 1 , 0 , 0 , 0 , 0 )
9696
9797
9898def test_start_of_year_from_last_day ():
9999 d = pendulum .datetime (2000 , 12 , 31 , 23 , 59 , 59 )
100100 new = d .start_of ('year' )
101- assert_datetime (new , 2000 , 1 , 1 , 0 , 0 , 0 )
101+ assert_datetime (new , 2000 , 1 , 1 , 0 , 0 , 0 , 0 )
102102
103103
104104def test_end_of_month_is_fluid ():
105105 d = pendulum .now ()
106106 assert isinstance (d .end_of ('month' ), pendulum .DateTime )
107107
108108
109- def test_end_of_month_from_now ():
110- d = pendulum .now ().start_of ('month' )
111- new = d .start_of ('month' )
112- assert_datetime (new , d .year , d .month , 1 , 0 , 0 , 0 )
113-
114-
115109def test_end_of_month ():
116110 d = pendulum .datetime (2000 , 1 , 1 , 2 , 3 , 4 ).end_of ('month' )
117111 new = d .end_of ('month' )
@@ -155,19 +149,19 @@ def test_start_of_decade_is_fluid():
155149def test_start_of_decade_from_now ():
156150 d = pendulum .now ()
157151 new = d .start_of ('decade' )
158- assert_datetime (new , d .year - d .year % 10 , 1 , 1 , 0 , 0 , 0 )
152+ assert_datetime (new , d .year - d .year % 10 , 1 , 1 , 0 , 0 , 0 , 0 )
159153
160154
161155def test_start_of_decade_from_first_day ():
162156 d = pendulum .datetime (2000 , 1 , 1 , 1 , 1 , 1 )
163157 new = d .start_of ('decade' )
164- assert_datetime (new , 2000 , 1 , 1 , 0 , 0 , 0 )
158+ assert_datetime (new , 2000 , 1 , 1 , 0 , 0 , 0 , 0 )
165159
166160
167161def test_start_of_decade_from_last_day ():
168162 d = pendulum .datetime (2009 , 12 , 31 , 23 , 59 , 59 )
169163 new = d .start_of ('decade' )
170- assert_datetime (new , 2000 , 1 , 1 , 0 , 0 , 0 )
164+ assert_datetime (new , 2000 , 1 , 1 , 0 , 0 , 0 , 0 )
171165
172166
173167def test_end_of_decade_is_fluid ():
@@ -201,19 +195,19 @@ def test_start_of_century_is_fluid():
201195def test_start_of_century_from_now ():
202196 d = pendulum .now ()
203197 new = d .start_of ('century' )
204- assert_datetime (new , d .year - d .year % 100 + 1 , 1 , 1 , 0 , 0 , 0 )
198+ assert_datetime (new , d .year - d .year % 100 + 1 , 1 , 1 , 0 , 0 , 0 , 0 )
205199
206200
207201def test_start_of_century_from_first_day ():
208202 d = pendulum .datetime (2001 , 1 , 1 , 1 , 1 , 1 )
209203 new = d .start_of ('century' )
210- assert_datetime (new , 2001 , 1 , 1 , 0 , 0 , 0 )
204+ assert_datetime (new , 2001 , 1 , 1 , 0 , 0 , 0 , 0 )
211205
212206
213207def test_start_of_century_from_last_day ():
214208 d = pendulum .datetime (2100 , 12 , 31 , 23 , 59 , 59 )
215209 new = d .start_of ('century' )
216- assert_datetime (new , 2001 , 1 , 1 , 0 , 0 , 0 )
210+ assert_datetime (new , 2001 , 1 , 1 , 0 , 0 , 0 , 0 )
217211
218212
219213def test_end_of_century_is_fluid ():
0 commit comments