コード例 #1
0
    def test_nothing(self, mock_process_pending):
        # this effectively just says "does the code run"
        process_pending()
        assert len(mock_process_pending.mock_calls) == 1
        mock_process_pending.assert_any_call(partition=None)

        process_pending(partition=1)
        assert len(mock_process_pending.mock_calls) == 2
        mock_process_pending.assert_any_call(partition=1)
コード例 #2
0
ファイル: tests.py プロジェクト: Kayle009/sentry
    def test_nothing(self, mock_process_pending):
        # this effectively just says "does the code run"
        process_pending()
        assert len(mock_process_pending.mock_calls) == 1
        mock_process_pending.assert_any_call(partition=None)

        process_pending(partition=1)
        assert len(mock_process_pending.mock_calls) == 2
        mock_process_pending.assert_any_call(partition=1)
コード例 #3
0
ファイル: tests.py プロジェクト: isabella232/sentry-2
 def test_nothing(self, mock_process_pending):
     # this effectively just says "does the code run"
     process_pending()
     mock_process_pending.assert_called_once_with()
コード例 #4
0
ファイル: tests.py プロジェクト: alshopov/sentry
 def test_nothing(self, mock_process_pending):
     # this effectively just says "does the code run"
     process_pending()
     mock_process_pending.assert_called_once_with()