Skip to content

Commit

Permalink
TST: xfail towncrier test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Dec 17, 2018
1 parent 0802a1f commit 4d6c251
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions baldrick/plugins/tests/test_github_towncrier_changelog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import sys
from unittest.mock import patch

import pytest

from baldrick.github.github_api import cfg_cache
from baldrick.github.github_api import RepoHandler, PullRequestHandler
from baldrick.plugins.github_towncrier_changelog import process_towncrier_changelog
Expand Down Expand Up @@ -39,6 +42,9 @@ def teardown_method(self, method):
self.modified_files_mock.stop()
self.get_base_branch_mock.stop()

@pytest.mark.xfail(
sys.platform.startswith('win'),
reason='process_towncrier_changelog returns failure on Windows')
def test_changelog_present(self, app):

self.get_file_contents.return_value = CONFIG_TEMPLATE
Expand Down

0 comments on commit 4d6c251

Please sign in to comment.