Patch environment variables to sync with FreezeGun time.
(self)
| 107 | self.tick() |
| 108 | |
| 109 | def patch_env(self) -> None: |
| 110 | """Patch environment variables to sync with FreezeGun time.""" |
| 111 | self.monkeypatch.setenv("DATE", datetime.now().isoformat()) |
| 112 | self.monkeypatch.setenv("GIT_AUTHOR_DATE", datetime.now().isoformat()) |
| 113 | self.monkeypatch.setenv("GIT_COMMITTER_DATE", datetime.now().isoformat()) |
| 114 | |
| 115 | def tick(self) -> None: |
| 116 | """Advance time by 1 second.""" |
no outgoing calls
no test coverage detected