Remove tests that involve network effects -- makes things faster and they are not really deep tests here either way.

pull/851/merge
Michael DeHaan 12 years ago
parent 259f2dc4de
commit de21cb27d8

@ -178,34 +178,6 @@ class TestRunner(unittest.TestCase):
assert os.path.exists(output) assert os.path.exists(output)
assert open(input_).read() == open(output).read() assert open(input_).read() == open(output).read()
def test_yum(self):
if not get_binary("yum"):
raise SkipTest
result = self._run('yum', [ "list=repos" ])
assert 'failed' not in result
def test_git(self):
if not get_binary("yum"):
raise SkipTest
repo = 'http://github.com/ansible/ansible.git'
dest = tempfile.mkdtemp()
result = self._run('git', ['repo=%s' % repo, 'dest=%s' % dest])
assert 'failed' not in result
result = self._run('git', [
'repo=%s' % repo,
'dest=%s' % dest,
'version=master'
])
assert 'false' not in result
try:
shutil.rmtree(dest)
except OSError, e:
print "Failed to remove temp dir %s" % dest
def test_service(self):
# TODO: tests for the service module
pass
def test_assemble(self): def test_assemble(self):
input = self._get_test_file('assemble.d') input = self._get_test_file('assemble.d')
output = self._get_stage_file('sample.out') output = self._get_stage_file('sample.out')

Loading…
Cancel
Save