Commit 686895b1 authored by Jason R. Coombs's avatar Jason R. Coombs

Cleanup indentation

parent 00de7109
...@@ -191,7 +191,8 @@ class TestEggInfo(object): ...@@ -191,7 +191,8 @@ class TestEggInfo(object):
test_params = test.lstrip().split('\n\n', 3) test_params = test.lstrip().split('\n\n', 3)
name_kwargs = test_params.pop(0).split('\n') name_kwargs = test_params.pop(0).split('\n')
if len(name_kwargs) > 1: if len(name_kwargs) > 1:
install_cmd_kwargs = ast.literal_eval(name_kwargs[1].strip()) val = name_kwargs[1].strip()
install_cmd_kwargs = ast.literal_eval(val)
else: else:
install_cmd_kwargs = {} install_cmd_kwargs = {}
name = name_kwargs[0].strip() name = name_kwargs[0].strip()
...@@ -211,9 +212,11 @@ class TestEggInfo(object): ...@@ -211,9 +212,11 @@ class TestEggInfo(object):
expected_requires, expected_requires,
install_cmd_kwargs, install_cmd_kwargs,
marks=marks)) marks=marks))
return pytest.mark.parametrize('requires,use_setup_cfg,' return pytest.mark.parametrize(
'requires,use_setup_cfg,'
'expected_requires,install_cmd_kwargs', 'expected_requires,install_cmd_kwargs',
argvalues, ids=idlist) argvalues, ids=idlist,
)
@RequiresTestHelper.parametrize( @RequiresTestHelper.parametrize(
# Format of a test: # Format of a test:
...@@ -361,8 +364,8 @@ class TestEggInfo(object): ...@@ -361,8 +364,8 @@ class TestEggInfo(object):
mismatch_marker=mismatch_marker, mismatch_marker=mismatch_marker,
mismatch_marker_alternate=mismatch_marker_alternate, mismatch_marker_alternate=mismatch_marker_alternate,
) )
def test_requires(self, tmpdir_cwd, env, def test_requires(
requires, use_setup_cfg, self, tmpdir_cwd, env, requires, use_setup_cfg,
expected_requires, install_cmd_kwargs): expected_requires, install_cmd_kwargs):
self._setup_script_with_requires(requires, use_setup_cfg) self._setup_script_with_requires(requires, use_setup_cfg)
self._run_install_command(tmpdir_cwd, env, **install_cmd_kwargs) self._run_install_command(tmpdir_cwd, env, **install_cmd_kwargs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment