mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-22 03:06:59 +03:00
pytest/coverage: Improve the .toml comment about pragma 'inversion'
This commit is contained in:
2 files changed
+10
-4
No files matched your search
+4
-2
@@ -15,8 +15,10 @@ omit = [ "tests/*", "venv/*", "dist.win32/*" ]
|
||||
plugins = [ "coverage_conditional_plugin" ]
|
||||
|
||||
[tool.coverage.coverage_conditional_plugin.rules]
|
||||
# Yes, the sense of all of these is inverted, because else it ends up
|
||||
# inverted at *every* use.
|
||||
# NB: The name versus content of all of these are inverted because of the way
|
||||
# they're used. When a pragma cites one it causes that code block to
|
||||
# **NOT** be considered for code coverage.
|
||||
# See Contributin.md#test-coverage for more details.
|
||||
sys-platform-win32 = "sys_platform != 'win32'"
|
||||
sys-platform-not-win32 = "sys_platform == 'win32'"
|
||||
sys-platform-darwin = "sys_platform != 'darwin'"
|
||||
|
||||
Reference in new issue
Block a user