mass_driver.forges.dummy

Dummy Forge, does not do anything meaningful

Module Contents

Classes

DummyForge

Doesn’t do anything

Data

DUMMY_PR_URL

A random but real PR to use as dummy value

API

mass_driver.forges.dummy.DUMMY_PR_URL = 'https://github.com/OverkillGuy/sphinx-needs-tests/pull/1'

A random but real PR to use as dummy value

class mass_driver.forges.dummy.DummyForge[source]

Bases: mass_driver.models.forge.Forge

Doesn’t do anything

PR_URL: str = None

The PR’s URL, for ease of access in tests

some_param_for_forgeconfig: pydantic.SecretStr = None

A ‘secret’ parameter to set via forgeconfig, for tests. Type enforces no-leak!

create_pr(forge_repo_url: str, base_branch: mass_driver.models.forge.BranchName, head_branch: mass_driver.models.forge.BranchName, pr_title: str, pr_body: str, draft: bool)[source]

Send a PR, with msg body, to forge_repo for given branch of repo_path

get_pr_status(pr_url) str[source]

Get the PR by ID on forge_repo

property pr_statuses: list[str]

List the possible PR status returned by get_pr_status, sorted by completion