Make test OS dependent

This commit is contained in:
Matthias 2019-11-23 14:20:41 +01:00
parent 31c598f88a
commit 1242263d25
2 changed files with 6 additions and 3 deletions

View File

@ -13,6 +13,7 @@ pytest-asyncio==0.10.0
pytest-cov==2.8.1
pytest-mock==1.11.1
pytest-random-order==1.0.4
systemd==0.16.1; sys_platform != 'win32'
# Convert jupyter notebooks to markdown documents
nbconvert==5.6.0

View File

@ -1,6 +1,7 @@
# pragma pylint: disable=missing-docstring, protected-access, invalid-name
import json
import logging
import sys
import warnings
from copy import deepcopy
from pathlib import Path
@ -14,8 +15,8 @@ from freqtrade.configuration import (Arguments, Configuration,
validate_config_consistency)
from freqtrade.configuration.check_exchange import check_exchange
from freqtrade.configuration.config_validation import validate_config_schema
from freqtrade.configuration.deprecated_settings import (check_conflicting_settings,
process_deprecated_setting,
from freqtrade.configuration.deprecated_settings import (
check_conflicting_settings, process_deprecated_setting,
process_temporary_deprecated_settings)
from freqtrade.configuration.directory_operations import (create_datadir,
create_userdata_dir)
@ -621,6 +622,7 @@ def test_set_loggers_syslog(mocker):
logger.handlers = orig_handlers
@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows")
def test_set_loggers_journald(mocker):
logger = logging.getLogger()
orig_handlers = logger.handlers