Exemplo n.º 1
0
def test_last_tuesday(fx_both):
    """
    Computing relative weekday to last tuesday
    """
    pytest.debug_func()
    argl = ["last", "tuesday"]
    fx_both.basetime = time.time()
    fx_both.expected = dt.time_to(argl[1], argl[0])
    fx_both.parsed = dt.parse_whenspec(argl)
    fx_both.reported = dt.report_date(default_format(), argl,
                                      basetime=fx_both.basetime)
Exemplo n.º 2
0
 def test_next_sunday(self):
     """
     Computing relative weekday
     """
     self.do_both(['next', 'sunday'], dt.time_to('sunday', 'next'))
Exemplo n.º 3
0
 def test_last_saturday(self):
     """
     Computing relative weekday
     """
     self.do_both(['last', 'saturday'], dt.time_to('saturday', 'last'))