Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

palfrey
Copy link

@palfrey palfrey commented Jul 20, 2019

Fixes #99

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):
Copy link
Author

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
Copy link
Author

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

@coveralls
Copy link

Coverage Status

Coverage increased (+1.6%) to 91.503% when pulling 0249872 on palfrey:exit-code-on-failure into 978a26d on kraiz:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+1.6%) to 91.503% when pulling 0249872 on palfrey:exit-code-on-failure into 978a26d on kraiz:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.6%) to 91.503% when pulling 0249872 on palfrey:exit-code-on-failure into 978a26d on kraiz:master.

@coveralls
Copy link

coveralls commented Jul 20, 2019

Coverage Status

Coverage increased (+1.6%) to 91.503% when pulling b6e7a8c on palfrey:exit-code-on-failure into 978a26d on kraiz:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exit code is 0 on exception
2 participants