mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-17 12:44:38 +03:00
@@ -14,6 +14,8 @@ Current changes
|
|||||||
Added
|
Added
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
* Test: Unit test against command line.
|
||||||
|
|
||||||
Changed
|
Changed
|
||||||
-------
|
-------
|
||||||
|
|
||||||
@@ -30,7 +32,7 @@ Security
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
`v0.6a1`_ (17, Nov., 2019)
|
`v0.6a1`_ (17, Nov., 2019)
|
||||||
=========================
|
==========================
|
||||||
|
|
||||||
Added
|
Added
|
||||||
-----
|
-----
|
||||||
@@ -50,7 +52,7 @@ Fixed
|
|||||||
* Dependency for py7zr only for python > 3.5. Now it works with python2.7.
|
* Dependency for py7zr only for python > 3.5. Now it works with python2.7.
|
||||||
|
|
||||||
`v0.5`_ (10, Nov., 2019)
|
`v0.5`_ (10, Nov., 2019)
|
||||||
=========================
|
========================
|
||||||
|
|
||||||
Changed
|
Changed
|
||||||
-------
|
-------
|
||||||
@@ -163,7 +165,7 @@ Fixed
|
|||||||
|
|
||||||
|
|
||||||
`v0.3.1`_ (15, March, 2019)
|
`v0.3.1`_ (15, March, 2019)
|
||||||
==========================
|
===========================
|
||||||
|
|
||||||
Added
|
Added
|
||||||
-----
|
-----
|
||||||
@@ -240,7 +242,7 @@ Changed
|
|||||||
* Support multiprocess concurrent download and installation.
|
* Support multiprocess concurrent download and installation.
|
||||||
|
|
||||||
`v0.0.2`_ (4, March, 2019)
|
`v0.0.2`_ (4, March, 2019)
|
||||||
========================
|
==========================
|
||||||
|
|
||||||
Added
|
Added
|
||||||
=====
|
=====
|
||||||
|
|||||||
@@ -1,8 +1,27 @@
|
|||||||
import os
|
|
||||||
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
import aqt
|
import aqt
|
||||||
|
|
||||||
|
|
||||||
|
def test_cli_help(capsys):
|
||||||
|
expected = "".join(["show help\n",
|
||||||
|
"usage: aqt [-h] [--logging-conf LOGGING_CONF] [--logger LOGGER] [--dry-run]\n",
|
||||||
|
" {install,tool,list,help} ...\n",
|
||||||
|
"\n",
|
||||||
|
"Installer for Qt SDK.\n",
|
||||||
|
"\n",
|
||||||
|
"optional arguments:\n",
|
||||||
|
" -h, --help show this help message and exit\n",
|
||||||
|
" --logging-conf LOGGING_CONF\n",
|
||||||
|
" Specify logging configuration YAML file.\n",
|
||||||
|
" --logger LOGGER Specify logger name\n",
|
||||||
|
" --dry-run Dry run operations.\n",
|
||||||
|
"\n",
|
||||||
|
"subcommands:\n",
|
||||||
|
" Valid subcommands\n",
|
||||||
|
"\n",
|
||||||
|
" {install,tool,list,help}\n",
|
||||||
|
" subcommand for aqt Qt installer\n"])
|
||||||
|
cli = aqt.cli.Cli()
|
||||||
|
cli.run(["help"])
|
||||||
|
out, err = capsys.readouterr()
|
||||||
|
assert out == expected
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user