Exemplo n.º 1
0
def project_configuration(project_dir, chdir):
    with chdir(project_dir):
        config = api.project_configuration()
        assert config
        assert isinstance(config, dict)
Exemplo n.º 2
0
def test_setting_output_dir_in_pyproject_overwrites_default(temporary_dir):
    config_file = os.path.join(temporary_dir, "pyproject.toml")
    with open(config_file, "w") as pyproject:
        pyproject.write(FAKE_PYPROJECT_TOML_BASIC)
    config = api.project_configuration(directory=temporary_dir, config_file=config_file)
    assert config["output_dir"] == "docs_output"