Add support for datetime.timedelta to time_machine.travel().
Thanks to Nate Dudenhoeffer in PR [#298](https://github.com/adamchainz/time-machine/issues/298) <https://github.com/adamchainz/time-machine/pull/298>__.
Fix documentation about using local time for naive date(time) strings.
Thanks to Stefaan Lippens in PR [#306](https://github.com/adamchainz/time-machine/issues/306) <https://github.com/adamchainz/time-machine/pull/306>__.
Add shift() method to the time_machine pytest fixture.
Thanks to Stefaan Lippens in PR [#312](https://github.com/adamchainz/time-machine/issues/312) <https://github.com/adamchainz/time-machine/pull/312>__.
Mock time.monotonic() and time.monotonic_ns().
They return the values of time.time() and time.time_ns() respectively, rather than real monotonic clocks.
Thanks to Anthony Sottile in PR [#382](https://github.com/adamchainz/time-machine/issues/382) <https://github.com/adamchainz/time-machine/pull/382>__.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps time-machine from 2.9.0 to 2.13.0.
Changelog
Sourced from time-machine's changelog.
Commits
b31371c
Version 2.13.01957f44
Tidy tests to use change_local_timezone() (#385)3c70dd5
Fix docs on timezone of naive date(time) strings (#306)483907d
Add support for dt.timedelta to travel class (#298)ac337ab
Make CHANGELOG consistentd97adc6
Addshift()
method totime_machine
pytest fixture (#312)21be5b7
[pre-commit.ci] pre-commit autoupdate (#384)33bbae8
Bump docker/setup-qemu-action from 2 to 3 (#383)e2766de
Support time.monotonic() and time.monotonic_ns() (#382)c8e1ccf
[pre-commit.ci] pre-commit autoupdate (#381)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show