Skip to content

Date format support#234

Merged
tusharmakkar08 merged 1 commit into
alecthomas:masterfrom
divanovGH:master
Oct 25, 2016
Merged

Date format support#234
tusharmakkar08 merged 1 commit into
alecthomas:masterfrom
divanovGH:master

Conversation

@divanovGH
Copy link
Copy Markdown

No description provided.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 24, 2016

Coverage Status

Coverage decreased (-0.6%) to 94.473% when pulling e4db597 on divanovGH:master into 0853189 on alecthomas:master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 95.204% when pulling d29e878 on divanovGH:master into 0853189 on alecthomas:master.

1 similar comment
@coveralls
Copy link
Copy Markdown

coveralls commented Oct 24, 2016

Coverage Status

Coverage increased (+0.2%) to 95.204% when pulling d29e878 on divanovGH:master into 0853189 on alecthomas:master.

Copy link
Copy Markdown
Collaborator

@tusharmakkar08 tusharmakkar08 left a comment

Choose a reason for hiding this comment

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

Please fix the changes requested.

Comment thread voluptuous/tests/tests.py
Schema(NT(int, int))(nt)
Schema(NT(int, int))(t)


Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you add a test case where DateInvalid is catched ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This test is already written in the 760 line

Comment thread voluptuous/validators.py Outdated
try:
datetime.datetime.strptime(v, self.format).date()
if len(v) != len(self.FORMAT_DESCRIPTION):
raise ValueError
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ValueError doesn't provide sufficient information. Use DateInvalid with different string input.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 24, 2016

Coverage Status

Coverage increased (+0.8%) to 95.816% when pulling 0fe64cd on divanovGH:master into 0853189 on alecthomas:master.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 24, 2016

Coverage Status

Coverage increased (+0.9%) to 95.918% when pulling ff06372 on divanovGH:master into 0853189 on alecthomas:master.

@tusharmakkar08
Copy link
Copy Markdown
Collaborator

This looks fine. Please squash your commits.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 25, 2016

Coverage Status

Coverage increased (+0.9%) to 95.918% when pulling 8833a97 on divanovGH:master into 0853189 on alecthomas:master.

@divanovGH
Copy link
Copy Markdown
Author

Done!

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