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.

  • 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.

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


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.