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

tests: fix units testing for generated item barcodes #979

Merged
merged 1 commit into from
May 7, 2020

Conversation

BadrAly
Copy link

@BadrAly BadrAly commented May 7, 2020

The current units testing ensures that the timestamp of the
generated barcode equals the sysdate timestamp. This was incorrect
because the time of the item creation/barcode generation is different
from the sysdate at running the assert command.

Now we test only if the barcode starts with f-.

Co-Authored-by: Aly Badr[email protected]

Why are you opening this PR?

  • Which task/US does it implement?
  • Which issue does it fix?

Dependencies

My PR depends on the following rero-ils-ui's PR(s):

  • rero/rero-ils-ui#

How to test?

  • What command should I have to run to test your PR?
  • What should I test through the UI?

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

@BadrAly BadrAly self-assigned this May 7, 2020
@BadrAly BadrAly requested review from jma, rerowep and zannkukai May 7, 2020 11:25
The current units testing ensures that the timestamp of the
generated barcode equals the sysdate timestamp. This was incorrect
because the time of the item creation/barcode generation is different
from the sysdate at running the assert command.

Now we test only if the barcode starts with f-.

Co-Authored-by: Aly Badr<[email protected]>
@BadrAly BadrAly force-pushed the baa-fix-barcode-testing branch from 11f4ad5 to 7e06f09 Compare May 7, 2020 11:33
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 approved.

@BadrAly BadrAly merged commit 1355be3 into rero:dev May 7, 2020
@BadrAly BadrAly deleted the baa-fix-barcode-testing branch November 5, 2020 13:38
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.

4 participants