diff options
author | holger krekel <holger@merlinux.eu> | 2015-05-12 21:42:12 +0200 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2015-05-12 21:42:12 +0200 |
commit | 486fe99bc56acbbb8078bd5aab8bafc9b1dc09a2 (patch) | |
tree | e2019d2efaf933f65e6f18c77ea6b775d2b25234 | |
parent | 554c6d8a464d5c5169e6e09fb1b2e864c09c74b7 (diff) | |
download | tox-486fe99bc56acbbb8078bd5aab8bafc9b1dc09a2.tar.gz |
show all registered per-testenv ini values
-rw-r--r-- | tests/test_config.py | 4 | ||||
-rw-r--r-- | tox/session.py | 22 |
2 files changed, 5 insertions, 21 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index 97a3cf9..a3824a6 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1566,14 +1566,14 @@ class TestCmdInvocation: result = cmd.run("tox", "--showconfig") assert result.ret == 0 result.stdout.fnmatch_lines([ - r'*deps=*dep1==2.3, dep2*', + 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*', + r'*deps*dep1, dep2==5.0*', ]) diff --git a/tox/session.py b/tox/session.py index 4fd8706..37d6b5c 100644 --- a/tox/session.py +++ b/tox/session.py @@ -594,25 +594,9 @@ class Session: self.report.tw.line() for envconfig in self.config.envconfigs.values(): self.report.line("[testenv:%s]" % envconfig.envname, bold=True) - self.report.line(" basepython=%s" % envconfig.basepython) - self.report.line(" pythoninfo=%s" % (envconfig.python_info,)) - self.report.line(" envpython=%s" % envconfig.envpython) - self.report.line(" envtmpdir=%s" % envconfig.envtmpdir) - self.report.line(" envbindir=%s" % envconfig.envbindir) - self.report.line(" envlogdir=%s" % envconfig.envlogdir) - self.report.line(" changedir=%s" % envconfig.changedir) - self.report.line(" args_are_path=%s" % envconfig.args_are_paths) - self.report.line(" install_command=%s" % - envconfig.install_command) - self.report.line(" commands=") - for command in envconfig.commands: - self.report.line(" %s" % command) - self.report.line(" deps=%s" % envconfig.deps) - self.report.line(" envdir= %s" % envconfig.envdir) - self.report.line(" downloadcache=%s" % envconfig.downloadcache) - self.report.line(" usedevelop=%s" % envconfig.usedevelop) - self.report.line(" setenv=%s" % envconfig.setenv) - self.report.line(" passenv=%s" % envconfig.passenv) + for attr in self.config._parser._testenv_attr: + self.report.line(" %-15s = %s" + % (attr.name, getattr(envconfig, attr.name))) def showenvs(self): for env in self.config.envlist: |