platform-specific coverage, can't test windows
@@ -28,13 +28,18 @@ requirements:
- python
- python-dateutil
+{% set cov_threshold = 98 %} # [linux]
+{% set cov_threshold = 59 %} # [osx]
+{% set cov_threshold = 0 %} # [win]
+
test:
source_files: src/tests
imports:
- time_machine
commands:
- pip check
- - pytest src/tests -vv --cov=time_machine --cov-report=term-missing:skip-covered --no-cov-on-fail --cov-fail-under=98
+ # can't test on windows due to use of ``time.tzset``
+ - pytest src/tests -vv --cov=time_machine --cov-report=term-missing:skip-covered --no-cov-on-fail --cov-fail-under={{ cov_threshold }} # [unix]
requires:
- backports.zoneinfo
- pip
