1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 00:07:14 +03:00

8 Commits

Author SHA1 Message Date
Athanasius
80a8a32666
pytest/coverage: Improve the .toml comment about pragma 'inversion' 2022-10-02 12:38:24 +01:00
Athanasius
baf62f03fd
pytest/coverage: Resolve the "which way around to have pragmas" issue
1. You end up either inverting the sense of a `coverage_conditional_plugin`
  pragma's name (versus what it actually tests), *or* where you put it in
  the code.
2. As the pragmas are only defined in once, in one place, it's better to
  invert the sense there, rather than in *every single use case*.
Then technically any 'other' branch isn't guaranteed to
2022-10-02 12:11:16 +01:00
Athanasius
5efd27a83c
tests: Attempt to fix config/ coverage
* Define `darwin` and `linux` *and* "platform known" pragmas.
* Use per-platform pragmas in `config/__init__.py` selection of implementation.
* Attempt, and fail, to use pragma in `config/darwin.py` to ignore it on
  other platforms.
2022-09-30 19:45:12 +01:00
Athanasius
1b0bbb9a56
tests: Improved coverage reporting
* Always report on coverage, if no tests failed.
* Remove `.coveragerc`, in favour of `pyproject.toml`.
* Use `coverage-conditional-plugin`:
  - Two rules added, `sys-platform-win32` and `sys-platform-not-win32`.
  - Those rules used so non-win32 code run on win32 doesn't cause coverage
    to be reported as less than 100%.

There's the assumption that !win32 means Linux, probably.
2022-09-30 19:25:22 +01:00
A_D
f160acfe57
add configs for switching platforms 2022-01-26 18:51:49 +02:00
A_D
7135c3be9c Missing newline 2021-04-01 14:45:46 +01:00
A_D
dcd142af15 Added configuration for tests 2021-04-01 14:45:45 +01:00
A_D
0be9bb7a6d
renamed pyproject.toml, added flake8-isort 2020-08-06 02:21:27 +02:00