Skip to content

Commit

Permalink
Make use of __file__ in formatting unit tests (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored and Delgan committed May 6, 2019
1 parent 786151c commit 2af1e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
("{level.icon}", lambda r: r == "🐞"),
("{file}", lambda r: r == "test_formatting.py"),
("{file.name}", lambda r: r == "test_formatting.py"),
("{file.path}", lambda r: re.fullmatch(r".*tests[/\\]test_formatting.py", r)),
("{file.path}", lambda r: r == __file__),
("{function}", lambda r: r == "test_log_formatters"),
("{module}", lambda r: r == "test_formatting"),
("{thread}", lambda r: re.fullmatch(r"\d+", r)),
Expand Down

0 comments on commit 2af1e28

Please sign in to comment.