Undocumented
Function | geterrtext |
Run CLI with options and return the output triggered by system exit. |
Function | test_cache_enabled_by_default |
Intersphinx object caching is enabled by default. |
Function | test_cannot_advance_blank_system |
Undocumented |
Function | test_cli_warnings_on_error |
The --warnings-as-errors option is disabled by default. This is the test for the long form of the CLI option. |
Function | test_invalid_option |
Undocumented |
Function | test_invalid_systemclasses |
Undocumented |
Function | test_main_project_name_guess |
When no project name is provided in the CLI arguments, a default name is used and logged. |
Function | test_main_project_name_option |
When a project name is provided in the CLI arguments nothing is logged. |
Function | test_main_return_non_zero_on_warnings |
When `-W` is used it returns 3 as exit code when there are warnings. |
Function | test_main_return_zero_on_warnings |
By default it will return 0 as exit code even when there are warnings. |
Function | test_main_source_outside_basedir |
If a --project-base-dir is given, all package and module paths must be located inside that base directory. |
Function | test_main_symlinked_paths |
The project base directory and package/module directories are normalized in the same way, such that System.setSourceHref() can call Path.relative_to() on them. |
Function | test_make_intersphix |
--make-intersphinx without --make-html will only produce the Sphinx inventory object. |
Function | test_no_systemclasses_py3 |
Undocumented |
Function | test_project_version_default |
When no --project-version is provided, it will default empty string. |
Function | test_project_version_string |
--project-version can be passed as a simple string. |
Function | test_projectbasedir_absolute |
The --project-base-dir option, when given an absolute path, should set that path as the projectbasedirectory attribute on the options object. |
Function | test_projectbasedir_relative |
The --project-base-dir option, when given a relative path, should convert that path to absolute and set it as the projectbasedirectory attribute on the options object. |
Function | test_projectbasedir_symlink |
The --project-base-dir option, when given a path containing a symbolic link, should resolve the path to the target directory. |
Parameters | |
*options:str | Undocumented |
Returns | |
str | Undocumented |
Parameters | |
capsys:CapSys | Undocumented |
Parameters | |
capsys:CapSys | Undocumented |
Parameters | |
capsys:CapSys | Undocumented |
Parameters | |
tmp_path:Path | Undocumented |
--make-intersphinx without --make-html will only produce the Sphinx inventory object.
This is also an integration test for the Sphinx inventory writer.
Parameters | |
tmp_path:Path | Undocumented |
The --project-base-dir option, when given an absolute path, should set that path as the projectbasedirectory attribute on the options object.
Previous versions of this test tried using non-existing paths and compared the string representations, but that was unreliable, since the input path might contain a symlink that will be resolved, such as "/home" on macOS. Using Path.samefile()
is reliable, but requires an existing path.
Parameters | |
tmp_path:Path | Undocumented |