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

chore: mock file age in python units #211

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

willmurphyscode
Copy link
Contributor

test_create_listing behaves differently on listings that are older than 120 days. Change these tests to mock the file age calculation, rather than just making the files newer.

See #209 (comment)

It would also be possible to change the datestamps in all the fixture JSON and recompute the expected checksums, but that work would have to be repeated every 4 months.

test_create_listing behaves differently on listings that are older than
120 days. Change these tests to mock the file age calculation, rather
than just making the files newers.

Signed-off-by: Will Murphy <[email protected]>
@willmurphyscode willmurphyscode added the changelog-ignore Don't consider when generating the changelog label Dec 11, 2023
@willmurphyscode willmurphyscode merged commit e541a31 into main Dec 11, 2023
13 checks passed
@willmurphyscode willmurphyscode deleted the chore/mock-file-age-in-python-units branch December 11, 2023 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-ignore Don't consider when generating the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants