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

add birth_date and death_date properties to Worker #465

Merged
merged 6 commits into from
Feb 27, 2015

Conversation

marklap
Copy link
Contributor

@marklap marklap commented Dec 19, 2014

As discussed a LONG time ago in #252

Add birth and death properties to Worker

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.33%) when pulling e6c32ed on marklap:workerbirthdeath into cd0c3c9 on nvie:master.

@selwin
Copy link
Collaborator

selwin commented Dec 24, 2014

Thanks for the PR @marklap, I know this feature is trivial, but can you provide some tests for the two properties?

@marklap
Copy link
Contributor Author

marklap commented Dec 24, 2014

Can do. Standby...

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.11%) to 83.16% when pulling 450c596 on marklap:workerbirthdeath into a1a8921 on nvie:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 83.36% when pulling a4ca470 on marklap:workerbirthdeath into a1a8921 on nvie:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 83.36% when pulling a4ca470 on marklap:workerbirthdeath into a1a8921 on nvie:master.

@marklap
Copy link
Contributor Author

marklap commented Feb 6, 2015

Added two tests to test_worker.py. Is this adequate?

self.assertEquals(type(birth_date).__name__, 'datetime')

def test_worker_sets_death(self):
"""Ensure worker correctly sets worker birth date."""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo here. Should be Ensure worker correctly sets worker birth date.

@marklap
Copy link
Contributor Author

marklap commented Feb 26, 2015

Think this covers everything

selwin added a commit that referenced this pull request Feb 27, 2015
add birth_date and death_date properties to Worker
@selwin selwin merged commit 30b21ef into rq:master Feb 27, 2015
@selwin
Copy link
Collaborator

selwin commented Feb 27, 2015

Thanks :)

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.

3 participants