Skip to content

Commit 9159a1d

Browse files
qwcodegvalkov
authored andcommitted
assert the order of the install/global options in the install call
1 parent 1294c0d commit 9159a1d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/unit/test_req_file.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ def test_install_requirements_with_options(self, tmpdir, finder, session):
297297
pass
298298

299299
call = popen.call_args_list[0][0][0]
300-
for i in global_option, install_option:
301-
assert i in call
302-
303-
# TODO: assert that --global-option come before --install-option.
300+
assert call.index(install_option) > \
301+
call.index('install') > \
302+
call.index(global_option) > 0

0 commit comments

Comments
 (0)