The mypy module names of the test tree derive from the full path, anchored by the top-level test/__init__.py, but a file below a path component that is not a valid identifier - the dashes in jw-pkg - falls back to the bare file name, so two same-named test.py drivers collide (the duplicate module error that drove the runme.py and main.py renames). Rename the directory a sane Python name - jw_pkg, that's the better fix. Then name the driver test.py like all the others for consistency. Signed-off-by: Jan Lindemann <jan@janware.com>
55 lines
4 KiB
Text
55 lines
4 KiB
Text
============= Running: jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format tmpl --template-name basic.tmpl --search-path templates --field name=foo jw-pkg
|
|
name=foo
|
|
path={path}
|
|
============= Running: jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format tmpl --template-name list.tmpl --search-path templates --field items=a --field items=b jw-pkg
|
|
start=a,
|
|
start=bend
|
|
============= Running: jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format tmpl --template-name list.tmpl --search-path templates --field items=a --field items=b --field-separator | jw-pkg
|
|
start=a|bend
|
|
============= Running: jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format tmpl --template-name list.tmpl --search-path templates --field items=a --field items=b --field-separator %n jw-pkg
|
|
start=a
|
|
start=bend
|
|
============= Running: jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format tmpl --template-name list.tmpl --search-path templates --field items=a --field items=b --quote --field-separator | jw-pkg
|
|
start="a"|"b"end
|
|
============= Running: jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format tmpl --template-name basic.tmpl --search-path templates --field-keys name,path --field name=foo jw-pkg
|
|
name=foo
|
|
path=
|
|
============= Running: jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format pyright --field base=./conf/project/pyrightconfig-base.json --field include=src/python jw-pkg
|
|
{
|
|
"extends": "./conf/project/pyrightconfig-base.json",
|
|
"include": [
|
|
"src/python"
|
|
],
|
|
"exclude": [
|
|
"**/__pycache__",
|
|
"**/.pytest_cache",
|
|
"**/.mypy_cache",
|
|
"**/.ruff_cache",
|
|
"**/.venv",
|
|
"**/build",
|
|
"**/dist"
|
|
],
|
|
"extraPaths": [
|
|
"src/python"
|
|
],
|
|
"typeCheckingMode": "basic",
|
|
"pythonPlatform": "Linux"
|
|
}
|
|
============= Running (expect failure): jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format tmpl jw-pkg
|
|
<E> Failed: Can't render template without name
|
|
============= Exit status: 1
|
|
============= Running (expect failure): jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format tmpl --template-name nosuch.tmpl --search-path templates jw-pkg
|
|
<E> Failed: Failed to find template "nosuch.tmpl"
|
|
============= Exit status: 1
|
|
============= Running (expect failure): jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format tmpl --template-name basic.tmpl --search-path templates --field-keys name --field path=x jw-pkg
|
|
<E> Failed: The following keys in --field are not in --field-keys: path
|
|
============= Exit status: 1
|
|
============= Running (expect failure): jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format pyright --field base=x --field include=y --field-separator | jw-pkg
|
|
<E> Failed: Unsupported separator for pyright config: "|"
|
|
============= Exit status: 1
|
|
============= Running (expect failure): jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format bogus jw-pkg
|
|
jw-pkg.py projects create-file: error: argument --format: invalid choice: 'bogus' (choose from 'pyright', 'tmpl')
|
|
============= Exit status: 2
|
|
============= Running (expect failure): jw-pkg.py -t ../../../../.. --log-level info --topdir-format relative --log-flags prio,stderr projects create-file --format tmpl --template-name basic.tmpl --search-path templates --field noval jw-pkg
|
|
jw-pkg.py projects create-file: error: argument -f/--field: Expected KEY=VALUE
|
|
============= Exit status: 2
|