Permalink
Browse files

Skipping tests that rely on tw2.forms and yuicompressor.

  • Loading branch information...
ralphbean committed Apr 4, 2012
1 parent eb5fdcc commit c7ae7984abfb3c6f503ebd98e72463a81d286d2c
Showing with 11 additions and 2 deletions.
  1. +0 −2 setup.py
  2. +11 −0 tests/test_commands.py
@@ -50,8 +50,6 @@ def get_description(fname='README.rst'):
'FormEncode',
'WebTest',
'strainer',
'yuicompressor',
'tw2.forms',
] + _extra_kid + _extra_cheetah + _extra_genshi + _extra_mako,
test_suite = 'nose.collector',
extras_require = {
@@ -55,6 +55,7 @@ def tearDown(self):
shutil.rmtree(OUT_DIR)
def test_init_options(self):
self.skipTest("Skipping until we don't require yuicompressor for testing.")
self.c.initialize_options()
assert(self.c.output == '')
assert(self.c.force == False)
@@ -161,6 +162,7 @@ def tearDown(self):
pass
def test_load_widgets(self):
self.skipTest("Skipping until we don't require tw2.forms for testing.")
import tw2.forms.widgets
import tw2.core
self.c._load_widgets(tw2.forms.widgets)
@@ -171,24 +173,28 @@ def test_load_widgets(self):
]))
def test_load_no_widgets(self):
self.skipTest("Skipping until we don't require tw2.forms for testing.")
import tw2.core.widgets
self.c._load_widgets(tw2.core.widgets)
rl_resources = core.request_local().setdefault('resources', [])
assert(len(rl_resources) == 0)
def test_load_entry_points(self):
self.skipTest("Skipping until we don't require tw2.forms for testing.")
self.c._load_widget_entry_points('tw2.forms')
rl_resources = core.request_local().setdefault('resources', [])
assert(len(rl_resources) != 0)
def test_render_entry_points(self):
self.skipTest("Skipping until we don't require tw2.forms for testing.")
self.c._load_widget_entry_points('tw2.forms')
rl_resources = core.request_local().setdefault('resources', [])
import pprint
print pprint.pformat(rl_resources)
def test_copy_tree(self):
self.skipTest("Skipping until we don't require tw2.forms for testing.")
import tw2.core.command
self.c._load_widget_entry_points('tw2.forms')
rl_resources = core.request_local().setdefault('resources', [])
@@ -209,6 +215,7 @@ def test_copy_tree(self):
))
def test_full_run(self):
self.skipTest("Skipping until we don't require tw2.forms for testing.")
self.c.run()
assert(not os.path.isdir(TMP_DIR))
assert(os.path.isdir(OUT_DIR))
@@ -219,6 +226,8 @@ def test_full_run(self):
))
def test_one_pass(self):
self.skipTest("Skipping until we don't require tw2.forms for testing.")
self.skipTest("Skipping until we don't require yuicompressor for testing.")
import yuicompressor
self.c.yuicompressor = yuicompressor.get_jar_filename()
self.c.compresslevel = 1
@@ -234,6 +243,8 @@ def test_one_pass(self):
# TODO Might be nice to check and see if the file is really compressed
def test_many_pass_compress(self):
self.skipTest("Skipping until we don't require tw2.forms for testing.")
self.skipTest("Skipping until we don't require yuicompressor for testing.")
import yuicompressor
self.c.yuicompressor = yuicompressor.get_jar_filename()
self.c.compresslevel = 1

0 comments on commit c7ae798

Please sign in to comment.