##// END OF EJS Templates
Remove invalid test runner and invalid tests....
Remove invalid test runner and invalid tests. These were old IPython tests that had to be executed manually, they haven't been run in years. For %cd we've added real tests, and the runner should be removed as it doesn't really work. For completer, our real test suite has tests already.

File last commit:

r2510:fe93ed21
r2654:18bf1d32
Show More
test_decorators_trial.py
52 lines | 1.6 KiB | text/x-python | PythonLexer
/ IPython / testing / tests / test_decorators_trial.py
Brian Granger
Commiting fixes for running our test suite using trial and nose....
r1963 # encoding: utf-8
"""
Brian Granger
Reverted decorators_trial.py and added command line docs....
r2510 Tests for decorators_trial.py
Brian Granger
Commiting fixes for running our test suite using trial and nose....
r1963 """
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2009 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
Brian Granger
Reverted decorators_trial.py and added command line docs....
r2510 # Tell nose to skip this module
Brian Granger
Commiting fixes for running our test suite using trial and nose....
r1963 __test__ = {}
import os
import sys
from twisted.trial import unittest
Brian Granger
Reverted decorators_trial.py and added command line docs....
r2510 import IPython.testing.decorators_trial as dec
Brian Granger
Commiting fixes for running our test suite using trial and nose....
r1963
#-----------------------------------------------------------------------------
# Tests
#-----------------------------------------------------------------------------
class TestDecoratorsTrial(unittest.TestCase):
@dec.skip()
def test_deliberately_broken(self):
"""A deliberately broken test - we want to skip this one."""
1/0
@dec.skip('Testing the skip decorator')
def test_deliberately_broken2(self):
"""Another deliberately broken test - we want to skip this one."""
1/0
@dec.skip_linux
def test_linux(self):
self.assertNotEquals(sys.platform,'linux2',"This test can't run under linux")
@dec.skip_win32
def test_win32(self):
self.assertNotEquals(sys.platform,'win32',"This test can't run under windows")
@dec.skip_osx
def test_osx(self):
Fernando Perez
Remove redundant decorators and unify into decorators.py
r2366 self.assertNotEquals(sys.platform,'darwin',"This test can't run under osx")