Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-12:GA
python-tox
tox-disable-network-accessing-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tox-disable-network-accessing-tests.patch of Package python-tox
Binary files a/tests/.test_config.py.swp and b/tests/.test_config.py.swp differ diff -ruN a/tests/test_z_cmdline.py b/tests/test_z_cmdline.py --- a/tests/test_z_cmdline.py 2013-09-04 15:55:04.000000000 +0200 +++ b/tests/test_z_cmdline.py 2013-09-05 10:12:19.605599163 +0200 @@ -380,47 +380,47 @@ ''' }) - def test_toxuone_env(self, cmd, example123): - result = cmd.run("tox") - assert not result.ret - result.stdout.fnmatch_lines([ - "*junit-python.xml*", - "*1 passed*", - ]) - result = cmd.run("tox", "-epython", ) - assert not result.ret - result.stdout.fnmatch_lines([ - "*1 passed*", - "*summary*", - "*python: commands succeeded" - ]) - - def test_different_config_cwd(self, cmd, example123, monkeypatch): - # see that things work with a different CWD - monkeypatch.chdir(cmd.tmpdir) - result = cmd.run("tox", "-c", "example123/tox.ini") - assert not result.ret - result.stdout.fnmatch_lines([ - "*1 passed*", - "*summary*", - "*python: commands succeeded" - ]) - - def test_json(self, cmd, example123): - # see that tests can also fail and retcode is correct - testfile = py.path.local("tests").join("test_hello.py") - assert testfile.check() - testfile.write("def test_fail(): assert 0") - jsonpath = cmd.tmpdir.join("res.json") - result = cmd.run("tox", "--result-json", jsonpath) - assert result.ret == 1 - data = json.load(jsonpath.open("r")) - verify_json_report_format(data) - result.stdout.fnmatch_lines([ - "*1 failed*", - "*summary*", - "*python: *failed*", - ]) +#def test_toxuone_env(self, cmd, example123): +# result = cmd.run("tox") +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*junit-python.xml*", +# "*1 passed*", +# ]) +# result = cmd.run("tox", "-epython", ) +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*1 passed*", +# "*summary*", +# "*python: commands succeeded" +# ]) + +#def test_different_config_cwd(self, cmd, example123, monkeypatch): +# # see that things work with a different CWD +# monkeypatch.chdir(cmd.tmpdir) +# result = cmd.run("tox", "-c", "example123/tox.ini") +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*1 passed*", +# "*summary*", +# "*python: commands succeeded" +# ]) + +#def test_json(self, cmd, example123): +# # see that tests can also fail and retcode is correct +# testfile = py.path.local("tests").join("test_hello.py") +# assert testfile.check() +# testfile.write("def test_fail(): assert 0") +# jsonpath = cmd.tmpdir.join("res.json") +# result = cmd.run("tox", "--result-json", jsonpath) +# assert result.ret == 1 +# data = json.load(jsonpath.open("r")) +# verify_json_report_format(data) +# result.stdout.fnmatch_lines([ +# "*1 failed*", +# "*summary*", +# "*python: *failed*", +# ]) def test_develop(initproj, cmd): @@ -430,14 +430,14 @@ assert not result.ret assert "sdist-make" not in result.stdout.str() -def test_usedevelop(initproj, cmd): - initproj("example123", filedefs={'tox.ini': """ - [testenv] - usedevelop=True - """}) - result = cmd.run("tox", "-vv") - assert not result.ret - assert "sdist-make" not in result.stdout.str() +# def test_usedevelop(initproj, cmd): +# initproj("example123", filedefs={'tox.ini': """ +# [testenv] +# usedevelop=True +# """}) +# result = cmd.run("tox", "-vv") +# assert not result.ret +# assert "sdist-make" not in result.stdout.str() def test_usedevelop_mixed(initproj, cmd): initproj("example123", filedefs={'tox.ini': """ @@ -457,57 +457,57 @@ assert not result.ret assert "sdist-make" in result.stdout.str() -def test_test_usedevelop(cmd, initproj): - initproj("example123-0.5", filedefs={ - 'tests': {'test_hello.py': """ - def test_hello(pytestconfig): - pass - """, - }, - 'tox.ini': ''' - [testenv] - usedevelop=True - changedir=tests - commands= - py.test --basetemp={envtmpdir} --junitxml=junit-{envname}.xml [] - deps=pytest - ''' - }) - result = cmd.run("tox", "-v") - assert not result.ret - result.stdout.fnmatch_lines([ - "*junit-python.xml*", - "*1 passed*", - ]) - assert "sdist-make" not in result.stdout.str() - result = cmd.run("tox", "-epython", ) - assert not result.ret - result.stdout.fnmatch_lines([ - "*1 passed*", - "*summary*", - "*python: commands succeeded" - ]) - # see that things work with a different CWD - old = cmd.tmpdir.chdir() - result = cmd.run("tox", "-c", "example123/tox.ini") - assert not result.ret - result.stdout.fnmatch_lines([ - "*1 passed*", - "*summary*", - "*python: commands succeeded" - ]) - old.chdir() - # see that tests can also fail and retcode is correct - testfile = py.path.local("tests").join("test_hello.py") - assert testfile.check() - testfile.write("def test_fail(): assert 0") - result = cmd.run("tox", ) - assert result.ret - result.stdout.fnmatch_lines([ - "*1 failed*", - "*summary*", - "*python: *failed*", - ]) +#def test_test_usedevelop(cmd, initproj): +# initproj("example123-0.5", filedefs={ +# 'tests': {'test_hello.py': """ +# def test_hello(pytestconfig): +# pass +# """, +# }, +# 'tox.ini': ''' +# [testenv] +# usedevelop=True +# changedir=tests +# commands= +# py.test --basetemp={envtmpdir} --junitxml=junit-{envname}.xml [] +# deps=pytest +# ''' +# }) +# result = cmd.run("tox", "-v") +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*junit-python.xml*", +# "*1 passed*", +# ]) +# assert "sdist-make" not in result.stdout.str() +# result = cmd.run("tox", "-epython", ) +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*1 passed*", +# "*summary*", +# "*python: commands succeeded" +# ]) +# # see that things work with a different CWD +# old = cmd.tmpdir.chdir() +# result = cmd.run("tox", "-c", "example123/tox.ini") +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*1 passed*", +# "*summary*", +# "*python: commands succeeded" +# ]) +# old.chdir() +# # see that tests can also fail and retcode is correct +# testfile = py.path.local("tests").join("test_hello.py") +# assert testfile.check() +# testfile.write("def test_fail(): assert 0") +# result = cmd.run("tox", ) +# assert result.ret +# result.stdout.fnmatch_lines([ +# "*1 failed*", +# "*summary*", +# "*python: *failed*", +# ]) def test_test_piphelp(initproj, cmd): Binary files a/tests/.test_z_cmdline.py.swp and b/tests/.test_z_cmdline.py.swp differ
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor