Skip to content

fix: replace pytest-freezegun with time-machine - #1064

Open
ketankurhade wants to merge 1 commit into
scanapi:mainfrom
ketankurhade:fix/957-time-machine
Open

ketankurhade wants to merge 1 commit into
scanapi:mainfrom
ketankurhade:fix/957-time-machine

Conversation

@ketankurhade

Copy link
Copy Markdown

Description

Replaces the unmaintained pytest-freezegun dependency with time-machine.

The affected tests were migrated from freeze_time/freezer usage to time-machine while preserving the existing test behavior and timestamps.

FakeDatetime usage was also replaced with the standard library datetime type.

Related Issue

Fixes #957

Testing

  • 23 affected unit tests passed
  • 389 tests passed in the full test suite
  • 1 test skipped
  • Ruff checks passed

Two existing Windows-specific path assertion failures remain unrelated to this change.

@ketankurhade
ketankurhade requested review from a team as code owners August 31, 2026 14:04

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thank you for supporting ScanAPI, and congratulations on your first contribution! A project committer will shortly review your contribution.

In the mean time, if you haven't had a chance please skim over the First Pull Request Guide which all pull requests must adhere to.

We hope to see you around!

@github-actions github-actions Bot added the First Contribution First contribution to the project. label Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First Contribution First contribution to the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace deprecated pytest-freezegun with time-machine

1 participant