-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-zero exit code on run_job failure #100
base: master
Are you sure you want to change the base?
Conversation
method_to_call.assert_called_with(1, 'two', test=34, a='s2') | ||
|
||
|
||
@override_settings(CRONJOBS=[('*/1 * * * *', 'tests.cron.cron_job', [1, 'two'], dict(), 'some suffix')]) | ||
@patch('tests.cron.cron_job') | ||
def test_run_args_only_format2_job(method_to_call): | ||
def test_run_args_only_format3_job(method_to_call): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got warnings about this being a duplicate name with the above test, so I renamed it
@@ -14,7 +14,7 @@ | |||
|
|||
from django_crontab.app_settings import Settings | |||
|
|||
string_type = basestring if sys.version_info[0] == 2 else str # flake8: noqa | |||
string_type = basestring if sys.version_info[0] == 2 else str # noqa: F821 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quite sure why this was now failing, as it's got nothing to do with my changes. Changing to an explicit ignore seems to work fine
Fixes #99