def test_missing_required_key_fails(project_file):
    # patch the validate_options_lookup function to always return true for this case
    with patch.object(BuildStockBatchBase, 'validate_options_lookup',
                      lambda _: True):
        with pytest.raises(ValueError):
            BuildStockBatchBase.validate_project_schema(project_file)
def test_minimal_schema_passes_validation():
    assert (BuildStockBatchBase.validate_project_schema(
        os.path.join(example_yml_dir, 'minimal-schema.yml')))