Exemple #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)
Exemple #2
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)
Exemple #3
0
 def test_nothing(self, mock_process_pending):
     # this effectively just says "does the code run"
     process_pending()
     mock_process_pending.assert_called_once_with()
Exemple #4
0
 def test_nothing(self, mock_process_pending):
     # this effectively just says "does the code run"
     process_pending()
     mock_process_pending.assert_called_once_with()