Did I find the right examples for you? yes no

All Samples(61)  |  Call(3)  |  Derive(0)  |  Import(58)
Unconditionally skip a test.

        def skip(reason):
    """
    Unconditionally skip a test.
    """
    def decorator(test_item):
        if not isinstance(test_item, (type, types.ClassType)):
            @functools.wraps(test_item)
            def skip_wrapper(*args, **kwargs):
                raise SkipTest(reason)
            test_item = skip_wrapper

        test_item.__unittest_skip__ = True
        test_item.__unittest_skip_why__ = reason
        return test_item
    return decorator
        


src/w/r/write-it-HEAD/nuntium/tests/record_system_test.py   write-it(Download)
from global_test_case import GlobalTestCase as TestCase
from django.utils.unittest import skip
from ..models import Message, WriteItInstance, OutboundMessage, MessageRecord
from django.contrib.contenttypes.models import ContentType
from popit.models import Person, ApiInstance

src/w/r/write-it-HEAD/nuntium/tests/outbound_message_test.py   write-it(Download)
from global_test_case import GlobalTestCase as TestCase
from django.utils.unittest import skip
from django.core.exceptions import ValidationError
from django.db import IntegrityError
from django.utils.translation import ugettext as _

src/w/r/write-it-HEAD/nuntium/tests/outbound_message_plugin_record_test.py   write-it(Download)
from global_test_case import GlobalTestCase as TestCase
from django.utils.unittest import skip
from ..models import Message, WriteItInstance, OutboundMessage, MessageRecord, OutboundMessagePluginRecord
from plugin_mock.mental_message_plugin import MentalMessage, FatalException, TryAgainException
from contactos.models import Contact, ContactType

src/w/r/write-it-HEAD/nuntium/tests/messages_test.py   write-it(Download)
# coding=utf-8
from django.test import TestCase as OriginalTestCase
from global_test_case import GlobalTestCase as TestCase
from global_test_case import UsingDbMixin
from django.utils.unittest import skip

src/w/r/write-it-HEAD/nuntium/tests/messages_search_test.py   write-it(Download)
from ..models import WriteItInstance, Confirmation, Answer
from django.views.generic.edit import FormView
from django.utils.unittest import skip
from haystack.views import SearchView
from django.utils.unittest import skip

src/w/r/write-it-HEAD/nuntium/tests/confirmation_test.py   write-it(Download)
from subdomains.utils import reverse
from django.contrib.sites.models import Site
from django.utils.unittest import skip
from django.conf import settings
from django.contrib.auth.models import User

src/w/r/write-it-HEAD/nuntium/tests/confirmation_template_test.py   write-it(Download)
from subdomains.utils import reverse
from django.contrib.sites.models import Site
from django.utils.unittest import skip
from django.conf import settings
from django.contrib.auth.models import User

src/w/r/write-it-HEAD/nuntium/tests/api/user_api_key_test.py   write-it(Download)
from popit.models import Person
from global_test_case import GlobalTestCase as TestCase, popit_load_data
from django.utils.unittest import skip
from django.conf import settings
import re

src/w/r/write-it-HEAD/nuntium/tests/api/person_resource_test.py   write-it(Download)
from popit.models import Person
from global_test_case import GlobalTestCase as TestCase, popit_load_data
from django.utils.unittest import skip
from django.conf import settings
import re

src/w/r/write-it-HEAD/nuntium/tests/api/page_paginator_test.py   write-it(Download)
from django.contrib.auth.models import User
from ...api import PagePaginator
from django.utils.unittest import skip
from tastypie.paginator import Paginator
 

  1 | 2 | 3 | 4 | 5 | 6  Next