Exemple #1
0
def test_nonexist_repos(command_tester):
    """Fails when the requested repos doesn't exist"""
    command_tester.test(
        lambda: entry_point(FakePublish),
        [
            "test-publish",
            "--pulp-url",
            "https://pulp.example.com",
            "--repo-ids",
            "repo1,repo2",
        ],
    )
Exemple #2
0
def test_no_input_repos(command_tester):
    """Fails if no repos are available to publish"""
    command_tester.test(
        lambda: entry_point(FakePublish),
        ["test-publish", "--pulp-url", "https://pulp.example.com"],
    )