Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Activate issue unit-tests as expected failures
Browse files Browse the repository at this point in the history
  • Loading branch information
wchresta committed Dec 28, 2019
1 parent 3d95571 commit 74c250f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/test_mypy_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,26 @@
import mypy.version
import os
import sys
import io
from typing import List, Optional


class TestMyPyPlugin(unittest.TestCase):
def test_issue21(self) -> None:
self._call_mypy_on_source_file("issue21.py")

def _test_issue25(self) -> None:
# TODO: This is a deactivated test for issue #25.
@unittest.expectedFailure # Issue #26 is still unfixed
def test_issue25(self) -> None:
# Activate it when working on it.
# cf. https://github.com/jspahrsummers/adt/issues/25
self._call_mypy_on_source_file("issue25.py")

def _test_issue26(self) -> None:
# TODO: This is a deactivated test for issue #26.
@unittest.expectedFailure # Issue #26 is still unfixed
def test_issue26(self) -> None:
# Activate it when working on it.
# cf. https://github.com/jspahrsummers/adt/issues/26
self._call_mypy_on_source_file("issue26.py")

def _test_readme_examples(self) -> None:
# TODO: This fails because of issue #26. Deactivated this test.
@unittest.expectedFailure # Fails because issue #26 is still unfixed
def test_readme_examples(self) -> None:
self._call_mypy_on_source_file("readme_examples.py")

def _call_mypy_on_source_file(self, source_file_name: str) -> None:
Expand Down

0 comments on commit 74c250f

Please sign in to comment.