Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

system: use UTC dates and ISO 8601 Z form #29

Merged
merged 2 commits into from
Aug 27, 2015

Conversation

jbenito3
Copy link
Member

  • Created new database type to store UTC-like dates
  • Validated that the date is ISO 8601
  • Refactored tests and added extra tests for restful api.

@jbenito3
Copy link
Member Author

@tiborsimko please, pay special attention to the test refactoring I did. Thanks!

@jbenito3 jbenito3 force-pushed the 6-use-utc-z-dates branch 10 times, most recently from f3fd37c to 904633a Compare August 26, 2015 08:14
@lnielsen
Copy link
Member

@jbenito3
Copy link
Member Author

@tiborsimko now the tests have passed for travis...but they don't in my computer...Shall we merge?

@jbenito3
Copy link
Member Author

@lnielsen yes, that could be a nice alternative. I copied the idea from our Indico Friends, see here. I thought it would be easier to use the original types with a simple decorator and avoid adding one extra lib.

@tiborsimko tiborsimko added this to the v0.2.0 milestone Aug 26, 2015
@tiborsimko
Copy link
Member

now the tests have passed for travis...but they don't in my computer...

Why don't we skip the conflicting import statements in test_restful_api.py:

from webtest import TestApp   # isort:skip

from .base import BaseTest  # isort:skip

This should make both local tests and Travis CI happy.

@@ -47,10 +53,11 @@ before_install:
install:
- travis_retry pip install --upgrade pip
- travis_retry pip install coveralls
- travis_retry pip install pytest pytest-pep8 pytest-pep257 pytest-cov pytest-cache pytest-isort
- travis_retry pip install --upgrade pytest pytest-pep8 pytest-pep257 pytest-cov pytest-cache pytest-isort
- travis_retry pip install -e .
Copy link
Member

Choose a reason for hiding this comment

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

The pip --upgrade is perhaps not necessary? (see also my previous isort:skip message)

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, I will remove it and I will try isort:skip.

@tiborsimko tiborsimko assigned jbenito3 and unassigned tiborsimko Aug 26, 2015
* Stores UTC dates in the dates and validates that follow ISO 8601 Z
  format. (addresses inveniosoftware#6)

Signed-off-by: Jose Benito Gonzalez Lopez <jose.benito.gonzalez@cern.ch>
* Refactores tests in order to share base functionality. (closes inveniosoftware#6)

* Uses webtest library to test restful api.

Signed-off-by: Jose Benito Gonzalez Lopez <jose.benito.gonzalez@cern.ch>
@jbenito3
Copy link
Member Author

@tiborsimko Thank you for your comments. I have done all the modifications as you suggested.

@jbenito3 jbenito3 assigned tiborsimko and unassigned jbenito3 Aug 27, 2015
@tiborsimko tiborsimko merged commit 1b5ebdf into inveniosoftware:master Aug 27, 2015
@jbenito3 jbenito3 deleted the 6-use-utc-z-dates branch August 27, 2015 07:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants