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: fix test in house #1644

Merged
merged 1 commit into from
Jan 27, 2021
Merged

test: fix test in house #1644

merged 1 commit into from
Jan 27, 2021

Conversation

zannkukai
Copy link
Contributor

Fixes the test "test_less_than_one_day_checkout". If the test was
executed when the library is closed, the test failed ; So to fix this
problem, we freeze the transaction date to an opening day/hour.

Fixes the function library.next_open() function. This function didn"t
care about hour/minutes.

Co-Authored-by: Renaud Michotte [email protected]

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Cypress tests successful?

@zannkukai zannkukai requested review from rerowep and BadrAly January 26, 2021 19:56
@zannkukai zannkukai self-assigned this Jan 26, 2021
@zannkukai zannkukai requested a review from iGormilhit January 26, 2021 19:56
@zannkukai zannkukai added the bug Breaks something but is not blocking label Jan 26, 2021
@zannkukai zannkukai added this to the v1.0.0 milestone Jan 26, 2021
@zannkukai zannkukai force-pushed the zan-fix-test-inhouse branch from d7cfbb9 to df07429 Compare January 26, 2021 20:07
@zannkukai zannkukai requested a review from AoNoOokami January 26, 2021 20:17
@zannkukai zannkukai force-pushed the zan-fix-test-inhouse branch from df07429 to 83f6a42 Compare January 26, 2021 21:15
Copy link
Contributor

@rerowep rerowep left a comment

Choose a reason for hiding this comment

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

There should be a issue for this error, if you find it you can add closes to your commit message.

Copy link

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

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

Commit message proposition:

test: fix the in house test

* Fixes the test "test_less_than_one_day_checkout" that is failing if
  the test is executed when the library is closed. To fix this issue,
  the transaction date is frozen to an opening day/hour.
* Takes into account the hours and minutes in the `library.next_open()`
  function.

* Fixes the test "test_less_than_one_day_checkout" that is failing if
  the test is executed when the library is closed. To fix this issue,
  the transaction date is frozen to an opening day/hour.
* Takes into account the hours and minutes in the `library.next_open()`
  function.

Co-Authored-by: Renaud Michotte <[email protected]>
@zannkukai zannkukai force-pushed the zan-fix-test-inhouse branch from 83f6a42 to 536a4ce Compare January 27, 2021 07:00
@zannkukai zannkukai requested a review from iGormilhit January 27, 2021 07:11
@zannkukai zannkukai merged commit 62dd2a0 into rero:dev Jan 27, 2021
@zannkukai zannkukai deleted the zan-fix-test-inhouse branch January 27, 2021 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Breaks something but is not blocking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants