summaryrefslogtreecommitdiff
path: root/tests/test_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index c030db8..f957771 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -1423,50 +1423,6 @@ class TestCmdInvocation:
r'*deps=*dep1, dep2==5.0*',
])
- def test_force_dep_with_requirements_txt_file(self, cmd, initproj):
- """
- Make sure we can override dependencies configured in external reqs.txt
- when using the command line option --force-dep.
- """
- initproj("example123-0.5", filedefs={
- 'tox.ini': '''
- [tox]
-
- [testenv]
- deps=
- dep1==1.0
- -r{toxinidir}/reqs.txt
- ''',
- 'reqs.txt': '''
- -e git://hello/world/git#egg=Hello
- # comment
- dep2>=2.0 # comment
-
-
- -i http://index.local/
- dep3
- dep4==4.0
- -r reqs2.txt
- ''',
- 'reqs2.txt': '''
- dep5>=2.2
- '''
- })
- config = parseconfig(
- ['--force-dep=dep1==1.5', '--force-dep=dep2==2.1',
- '--force-dep=dep3==3.0'])
- assert config.option.force_dep == [
- 'dep1==1.5', 'dep2==2.1', 'dep3==3.0']
-
- deps = config.envconfigs['python'].deps
- assert len(deps) == 6
- expected = ['dep1==1.5', 'Hello', 'dep2==2.1',
- 'dep3==3.0', 'dep4', 'dep5']
-
- for index, dep in enumerate(deps):
- assert dep.name == expected[index]
-
-
class TestArgumentParser:
def test_dash_e_single_1(self):