schema_salad.tests.test_fetch

Classes

testFetcher

Fetch resources from URIs.

CWLTestFetcher

Fetch resources from URIs.

Functions

test_fetcher()

test_cache()

Module Contents

class schema_salad.tests.test_fetch.testFetcher(cache, session)

Bases: schema_salad.fetcher.Fetcher

Inheritance diagram of schema_salad.tests.test_fetch.testFetcher

Fetch resources from URIs.

Parameters:
fetch_text(url, content_types=None)

Retrieve the given resource as a string.

Parameters:
Return type:

str

check_exists(url)

Check if the given resource exists.

Parameters:

url (str)

Return type:

bool

urljoin(base, url)

Construct a full (“absolute”) URL by combining a “base URL” with another URL.

Parameters:
Return type:

str

class schema_salad.tests.test_fetch.CWLTestFetcher(cache, session)

Bases: schema_salad.fetcher.Fetcher

Inheritance diagram of schema_salad.tests.test_fetch.CWLTestFetcher

Fetch resources from URIs.

Parameters:
fetch_text(url, content_types=None)

Retrieve the given resource as a string.

Parameters:
Return type:

str

check_exists(url)

Check if the given resource exists.

Parameters:

url (str)

Return type:

bool

urljoin(base, url)

Construct a full (“absolute”) URL by combining a “base URL” with another URL.

Parameters:
Return type:

str

schema_salad.tests.test_fetch.test_fetcher()
Return type:

None

schema_salad.tests.test_fetch.test_cache()
Return type:

None