def test_tilde_in_source(): """ Tests that a source does not contain any non relative paths i.e. tilde (~) """ load_config(sources=["path1/tets", "~/path2/wrong.py"]) load_and_validate_fails()
def test_invalid_element_type(): """ tests that a complex type with an invalid element type throws an error """ load_config(sources=["path1/", 2]) load_and_validate_fails()
def test_invalid_name(): """ tests that a missing config parameter that is required throws an error """ load_config(exclude=["sources"]) load_and_validate_fails()
def test_invalid_type(): """ tests that a config file with an invalid type for sources throws an error """ load_config(sources="wrong") load_and_validate_fails()
def test_invalid_subtype_module(): """ """ load_config(python={ "include_init_files": False, "include_main_file": False, "module": 6, }) load_and_validate_fails()
def test_invalid_type(): """ """ load_config(python=3) load_and_validate_fails()
def test_invalid_type(): """ """ load_config(sidebar=3) load_and_validate_fails()
def test_missing_subtype_title(): """ """ load_config(titles=[{"source": "valid"}]) load_and_validate_fails()
def test_invalid_subtype_title(): """ """ load_config(titles=[{"source": "valid", "title": 2}]) load_and_validate_fails()
def test_invalid_type(): """ """ load_config(titles=3) load_and_validate_fails()