-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Second attempt at fixing timezone test issues
This is a followup to #10. It turns out that `freezegun` does not yet support `dateutil`'s `tzlocal`, which is used by `timew-report` [here]. [This comment] on the `freezegun` repository provides a context manager solution that can be used for now. This change properly fixes #6. [here]: https://github.com/lauft/timew-report/blob/c972357a44640c7a5f803d79fc77ca597e1b22f0/timewreport/interval.py#L49 [This comment]: https://github.com/lauft/timew-report/blob/c972357a44640c7a5f803d79fc77ca597e1b22f0/timewreport/interval.py#L49
- Loading branch information
Showing
4 changed files
with
46 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ timew-report = "<1.3" | |
|
||
[dev-packages] | ||
pytest = "*" | ||
pytest-freezegun = "*" | ||
|
||
[requires] | ||
python_version = "3.6" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters