Tests for Sphinx integration.
Class |
|
A io.BytesIO instance that closes itself after all its data has been read. This mimics the behavior of http.client.HTTPResponse in the standard library. |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Partial implementation of pydoctor.model.System.msg() that records logged messages. |
Class |
|
Partial implementation of pydoctor.model.System.msg() that asserts if any message is logged. |
Class |
|
Tests for sphinx.IntersphinxCache |
Class |
|
Tests for sphinx.parseMaxAge |
Class |
|
Documentable type to help with testing. |
Function | cache |
Undocumented |
Function | get |
No summary |
Function | inv |
Undocumented |
Function | inv |
Undocumented |
Function | inv |
No summary |
Function | test_ |
ClosingBytesIO closes itself when all its data has been read. |
Function | test |
Functional test for index generation of empty API. |
Function | test_generate |
Return a string with inventory for all targeted objects, recursive. |
Function | test_generate |
Check inventory for attributes. |
Function | test_generate |
Check inventory for class. |
Function | test_generate |
Check inventory for function. |
Function | test_generate |
Check inventory for method. |
Function | test_generate |
Check inventory for module. |
Function | test_generate |
Check inventory for package. |
Function | test_generate |
When object type is uknown a message is logged and is handled as generic object. |
Function | test_get |
Return the link from internal state. |
Function | test_get |
Return None if link does not exists. |
Function | test_get |
Return the link with anchor as target name when link end with $. |
Function | test_get |
Return content as string. |
Function | test_get |
Return empty string. |
Function | test_get |
Return empty string and log an error when failing to uncompress data. |
Function | test_get |
Return empty string and log an error when failing to uncompress data. |
Function | test_parse |
Return empty dict for empty input. |
Function | test_parse |
Skip line and log an error. |
Function | test_parse |
Return a dict with a single member. |
Function | test_parse |
Sphinx inventory lines always contain 5 values, separated by spaces. However, the first and fifth value can contain internal spaces. The parser must be able to tell apart separators from internal spaces. |
Function | test_parse |
Ignore entries that don't have a 'py:' type field. |
Function | test_prepare |
The cache directory is deleted when clearCache is True ; an IntersphinxCache is created with a session on which is mounted cachecontrol.CacheControlAdapter for http and https URLs. |
Function | test |
Log an error when failing to get base url from url. |
Function | test |
Log an error when failing to get content from url. |
Function | test |
Functional test for updating from an empty inventory. |
Constant | IGNORE |
Passed as a System when we don't want the system to be accessed. |
Variable | max |
Undocumented |
Variable | max |
Undocumented |
Undocumented
Parameters | |
request:FixtureRequest | Undocumented |
tmpTempPathFactory | Undocumented |
Returns | |
Path | Undocumented |
Parameters | |
name:str | Undocumented |
version:str | Undocumented |
Returns | |
Tuple[ | Tuple of a Sphinx inventory writer connected to the logger. |
Functional test for index generation of empty API.
Header is plain text while content is compressed.
Return a string with inventory for all targeted objects, recursive.
Parameters | |
invsphinx.SphinxInventoryWriter | Undocumented |
Check inventory for function.
Functions are inside a module.
Parameters | |
invsphinx.SphinxInventoryWriter | Undocumented |
Check inventory for method.
Methods are functions inside a class.
Parameters | |
invsphinx.SphinxInventoryWriter | Undocumented |
Return the link with anchor as target name when link end with $.
Parameters | |
invsphinx.SphinxInventory | Undocumented |
Return empty string and log an error when failing to uncompress data.
Parameters | |
invInvReader | Undocumented |
Return empty string and log an error when failing to uncompress data.
Parameters | |
invInvReader | Undocumented |
Sphinx inventory lines always contain 5 values, separated by spaces. However, the first and fifth value can contain internal spaces. The parser must be able to tell apart separators from internal spaces.
@settings(
def test_prepareCache(cacheDirectory, clearCache, enableCache, cacheDirectoryName, maxAgeAmount, maxAgeUnit): (source) ¶
The cache directory is deleted when clearCache is True
; an IntersphinxCache
is created with a session on which is mounted cachecontrol.CacheControlAdapter for http and https URLs.
Parameters | |
cachePath | Undocumented |
clearbool | Undocumented |
enablebool | Undocumented |
cachestr | Undocumented |
maxint | Undocumented |
maxstr | Undocumented |
Functional test for updating from an empty inventory.
Parameters | |
invsphinx.SphinxInventory | Undocumented |
Passed as a System when we don't want the system to be accessed.
Value |
|