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

Add item tests #45

Merged
merged 4 commits into from
Sep 14, 2023
Merged

Add item tests #45

merged 4 commits into from
Sep 14, 2023

Conversation

sunga12
Copy link
Collaborator

@sunga12 sunga12 commented Sep 14, 2023

  • Added Unit Tests for the Item class based on the requirements

can_be_archived?() in the Item class

  • should return true if published_date is older than 10 years
  • otherwise, it should return false

move_to_archive() in the Item class

  • should change the archived property to true if the result of the can_be_archived?() method is true
  • should do nothing if the result of the can_be_archived?() method is false

Copy link
Collaborator

@batoolfatima2135 batoolfatima2135 left a comment

Choose a reason for hiding this comment

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

Great job!!

@batoolfatima2135 batoolfatima2135 merged commit 07f3c28 into develop Sep 14, 2023
2 checks passed
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.

2 participants