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

Test for membership in TimeRecurrence #23

Merged
merged 1 commit into from
Feb 27, 2014

Conversation

benfitzpatrick
Copy link
Contributor

It is useful to check whether a given TimePoint is
a member of the series of a TimeRecurrence.
This is useful for @hjoliver's work on cylc/cylc-flow#887.

This adds that functionality and adds more tests for
the adding and subtracting API for TimePoint, fixing
some bugs as found by the new tests.

@arjclark, please review.

@matthewrmshin matthewrmshin added this to the next-release milestone Feb 25, 2014
@@ -301,10 +320,10 @@ def get_is_in_weeks(self):
def to_days(self):
"""Convert to day representation rather than weeks."""
if self.get_is_in_weeks():
for attribute in [self.years, self.months, self.hours,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fix a pre-existing bug

@arjclark
Copy link
Contributor

Looks OK to me, nothing visibly wrong. Test battery passes.

arjclark added a commit that referenced this pull request Feb 27, 2014
@arjclark arjclark merged commit e042fcc into metomi:master Feb 27, 2014
@benfitzpatrick benfitzpatrick deleted the test_in_timerecurrence branch April 2, 2014 13:28
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