コード例 #1
0
ファイル: test_decorators.py プロジェクト: pombreda/gofer
    def test_recurring(self, actions):
        def fn():
            pass

        interval = dict(hours=10)
        action(**interval)(fn)
        actions.add.assert_called_once_with(fn, interval)
コード例 #2
0
ファイル: test_decorators.py プロジェクト: jortel/gofer
 def test_single(self, actions):
     def fn(): pass
     action(fn)
     actions.add.assert_called_once_with(fn, {'days': 36500})
コード例 #3
0
ファイル: test_decorators.py プロジェクト: jortel/gofer
 def test_recurring(self, actions):
     def fn(): pass
     interval = dict(hours=10)
     action(**interval)(fn)
     actions.add.assert_called_once_with(fn, interval)
コード例 #4
0
ファイル: test_decorators.py プロジェクト: pombreda/gofer
    def test_single(self, actions):
        def fn():
            pass

        action(fn)
        actions.add.assert_called_once_with(fn, {'days': 36500})