def METHOD_NAME(runner, project_with_datasets, with_injection):
    """Test export validation fails for datasets that have both same_as and derived_from."""
    with with_injection():
        with with_dataset(name="dataset-1", commit_database=True) as dataset:
            # NOTE: Set both same_as and derived_from for a dataset
            dataset.same_as = Url(url_str="http://example.com")
            dataset.derived_from = Url(url_id="datasets/abc123")
    result = runner.invoke(cli, ["graph", "export", "--full", "--strict"])
    assert 1 == result.exit_code
    assert "Both prov:wasDerivedFrom and schema:sameAs are set." in result.output