Beispiel #1
0
def test_collection_prompt(monkeypatch):
    sequence, expected_output = get_collection_sequence()
    monkeypatch.setattr("builtins.input", MonkeyPatchSequence(sequence))
    config1 = DataCollectionConfig.prompt()

    assert config1 == expected_output
Beispiel #2
0
    def prompt():
        collection = DataCollectionConfig.prompt()
        readme = ReadmeConfig.prompt()
        package = PackageConfig.prompt()

        return DataRepoConfig(collection=collection, readme=readme, package=package)