コード例 #1
0
 def test_over_due_actions_url_without_over_due_cards(self):
     """ Test the over due actions url without over due cards. """
     api = FakeWekanAPI([
         FakeBoard(
             [FakeCardList([FakeCard(due_at="3017-1-1T12:00:00.000Z")])])
     ])
     board = WekanBoard('http://wekan', '', '', api=api)
     self.assertEqual([],
                      board.over_due_actions_url('id',
                                                 now=datetime.datetime(
                                                     2018, 1, 1, 12, 0, 0)))
コード例 #2
0
 def test_over_due_actions_url(self):
     """ Test the over due actions url. """
     api = FakeWekanAPI([
         FakeBoard(
             [FakeCardList([FakeCard(due_at="2017-1-1T12:00:00.000Z")])])
     ])
     board = WekanBoard('http://wekan', '', '', api=api)
     self.assertEqual(
         [('http://wekan/b/id/title/card_id', 'card_id', '365 dagen')],
         board.over_due_actions_url('id',
                                    now=datetime.datetime(
                                        2018, 1, 1, 12, 0, 0)))
コード例 #3
0
ファイル: wekan_tests.py プロジェクト: ICTU/quality-report
 def test_over_due_actions_url_without_over_due_cards(self):
     """ Test the over due actions url without over due cards. """
     api = FakeWekanAPI([FakeBoard([FakeCardList([FakeCard(due_at="3017-1-1T12:00:00.000Z")])])])
     board = WekanBoard('http://wekan', '', '', api=api)
     self.assertEqual([], board.over_due_actions_url('id', now=datetime.datetime(2018, 1, 1, 12, 0, 0)))
コード例 #4
0
ファイル: wekan_tests.py プロジェクト: ICTU/quality-report
 def test_over_due_actions_url(self):
     """ Test the over due actions url. """
     api = FakeWekanAPI([FakeBoard([FakeCardList([FakeCard(due_at="2017-1-1T12:00:00.000Z")])])])
     board = WekanBoard('http://wekan', '', '', api=api)
     self.assertEqual([('http://wekan/b/id/title/card_id', 'card_id', '365 dagen')],
                      board.over_due_actions_url('id', now=datetime.datetime(2018, 1, 1, 12, 0, 0)))