Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:42.2
python3-tox
tox-disable-env-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tox-disable-env-tests.patch of Package python3-tox
diff -ruN a/tests/test_config.py b/tests/test_config.py --- a/tests/test_config.py 2014-03-28 15:18:52.000000000 +0100 +++ b/tests/test_config.py 2014-07-04 09:18:56.318789330 +0200 @@ -1575,82 +1575,6 @@ assert config.envconfigs['hello'].recreate -class TestCmdInvocation: - def test_help(self, cmd): - result = cmd.run("tox", "-h") - assert not result.ret - result.stdout.fnmatch_lines([ - "*help*", - ]) - - def test_version(self, cmd): - result = cmd.run("tox", "--version") - assert not result.ret - stdout = result.stdout.str() - assert tox.__version__ in stdout - assert "imported from" in stdout - - def test_listenvs(self, cmd, initproj): - initproj('listenvs', filedefs={ - 'tox.ini': ''' - [tox] - envlist=py26,py27,py33,pypy,docs - - [testenv:notincluded] - changedir = whatever - - [testenv:docs] - changedir = docs - ''', - }) - result = cmd.run("tox", "-l") - result.stdout.fnmatch_lines(""" - *py26* - *py27* - *py33* - *pypy* - *docs* - """) - - def test_config_specific_ini(self, tmpdir, cmd): - ini = tmpdir.ensure("hello.ini") - result = cmd.run("tox", "-c", ini, "--showconfig") - assert not result.ret - result.stdout.fnmatch_lines([ - "*config-file*hello.ini*", - ]) - - def test_no_tox_ini(self, cmd, initproj): - initproj("noini-0.5", ) - result = cmd.run("tox") - assert result.ret - result.stderr.fnmatch_lines([ - "*ERROR*tox.ini*not*found*", - ]) - - def test_showconfig_with_force_dep_version(self, cmd, initproj): - initproj('force_dep_version', filedefs={ - 'tox.ini': ''' - [tox] - - [testenv] - deps= - dep1==2.3 - dep2 - ''', - }) - result = cmd.run("tox", "--showconfig") - assert result.ret == 0 - result.stdout.fnmatch_lines([ - r'*deps*dep1==2.3, dep2*', - ]) - # override dep1 specific version, and force version for dep2 - result = cmd.run("tox", "--showconfig", "--force-dep=dep1", - "--force-dep=dep2==5.0") - assert result.ret == 0 - result.stdout.fnmatch_lines([ - r'*deps*dep1, dep2==5.0*', - ]) @pytest.mark.parametrize("cmdline,envlist", [ diff -ruN a/tests/test_venv.py b/tests/test_venv.py --- a/tests/test_venv.py 2014-03-28 15:18:52.000000000 +0100 +++ b/tests/test_venv.py 2014-07-04 09:19:23.328881676 +0200 @@ -507,42 +507,6 @@ assert '__PYVENV_LAUNCHER__' not in os.environ -def test_env_variables_added_to_pcall(tmpdir, mocksession, newconfig, monkeypatch): - pkg = tmpdir.ensure("package.tar.gz") - monkeypatch.setenv("X123", "123") - monkeypatch.setenv("YY", "456") - config = newconfig([], """ - [testenv:python] - commands=python -V - passenv = x123 - setenv = - ENV_VAR = value - """) - mocksession._clearmocks() - - venv = VirtualEnv(config.envconfigs['python'], session=mocksession) - # import pdb; pdb.set_trace() - mocksession.installpkg(venv, pkg) - venv.test() - - l = mocksession._pcalls - assert len(l) == 2 - for x in l: - env = x.env - assert env is not None - assert 'ENV_VAR' in env - assert env['ENV_VAR'] == 'value' - assert env['VIRTUAL_ENV'] == str(venv.path) - assert env['X123'] == "123" - # all env variables are passed for installation - assert l[0].env["YY"] == "456" - assert "YY" not in l[1].env - - assert set(["ENV_VAR", "VIRTUAL_ENV", "PYTHONHASHSEED", "X123", "PATH"])\ - .issubset(l[1].env) - - # for e in os.environ: - # assert e in env def test_installpkg_no_upgrade(tmpdir, newmocksession):
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