pulp_smash.tests.pulp3.file.utils

Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp3.file.utils

Utilities for tests for the file plugin.

pulp_smash.tests.pulp3.file.utils.populate_pulp(cfg, url=None)

Add file contents to Pulp.

Parameters:
  • pulp_smash.config.PulpSmashConfig – Information about a Pulp application.
  • url – The URL to a file repository’s PULP_MANIFEST file. Defaults to pulp_smash.constants.FILE_FEED_URL + PULP_MANIFEST.
Returns:

A list of dicts, where each dict describes one file content in Pulp.

pulp_smash.tests.pulp3.file.utils.set_up_module()

Skip tests Pulp 3 isn’t under test or if pulp-file isn’t installed.

pulp_smash.tests.pulp3.file.utils.skip_if = functools.partial(<function skip_if>, exc=<class 'unittest.case.SkipTest'>)

The @skip_if decorator, customized for unittest.

pulp_smash.selectors.skip_if() is test runner agnostic. This function is identical, except that exc has been set to unittest.SkipTest.