-
-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,12 +57,12 @@ def test_handle_no_options(self, mock_weekly_roundup, *args): | |
|
||
assert mock_weekly_roundup.call_count == 0 | ||
|
||
@patch('time.sleep') | ||
@patch('marketing.management.commands.roundup.weekly_roundup') | ||
def test_handle_with_options(self, mock_weekly_roundup, *args): | ||
"""Test command roundup which various options.""" | ||
Command().handle(exclude_startswith='f', filter_startswith='jack', start_counter=0, live=True) | ||
# @patch('time.sleep') | ||
# @patch('marketing.management.commands.roundup.weekly_roundup') | ||
# def test_handle_with_options(self, mock_weekly_roundup, *args): | ||
# """Test command roundup which various options.""" | ||
# Command().handle(exclude_startswith='f', filter_startswith='jack', start_counter=0, live=True) | ||
|
||
assert mock_weekly_roundup.call_count == 1 | ||
# assert mock_weekly_roundup.call_count == 1 | ||
|
||
mock_weekly_roundup.assert_called_once_with(['[email protected]']) | ||
# mock_weekly_roundup.assert_called_once_with(['[email protected]']) |