.bdd_test_data_manager package

Submodules

.bdd_test_data_manager.data_manager module

exception FileAlreadyExists[source]

Bases: Exception

Enforces version control for the artefact

download_test_data(file_name: str, artefact_directory: str) str[source]

Download the test data file from the repository.

Parameters
  • file_name – The name of the file on the repository.

  • artefact_directory – Destination directory for specified file. e.g. path/to/files/

Returns

The path to the downloaded file.

search_for_file(filtering_string: str, artefact_directory: str) list[str][source]

Search a directory for a specified file.

Parameters
  • filtering_string – The name of the file on the repository. It can also be a wildcard which will have all files listed in that directory.

  • artefact_directory – Directory to search for the test data. e.g. /path/to/files Note: contents of sub-directories in the path will not be shown for nexus.

Returns

A list of all file paths or a specified file path in the artefact directory.

upload_test_data(file_path: str, artefact_directory: str) bool[source]

Upload the test data file to the repository.

Parameters
  • file_path – the absolute path of the file to be uploaded.

  • artefact_directory – destination directory for files to be uploaded. e.g. path/to/files/

Returns

An indication of the outcome of the request

Module contents