def METHOD_NAME(self, project):
    with pytest.raises(CompilationError) as exc:
        run_dbt(["compile"])
    assert "macro 'dbt_macro__some_macro' takes no keyword argument 'invalid'" in str(
        exc.value
    )