|  | 
| 2 | 2 | test suite.""" | 
| 3 | 3 | import logging | 
| 4 | 4 | from contextlib import ExitStack | 
| 5 |  | -from pathlib import Path | 
| 6 | 5 | from test.data import TEST_DATA_DIR | 
| 7 | 6 | from test.utils import BNodeHandling, GraphHelper, ensure_suffix | 
| 8 |  | -from test.utils.iri import URIMapper, file_uri_to_path | 
|  | 7 | +from test.utils.iri import URIMapper | 
| 9 | 8 | from test.utils.namespace import RDFT | 
| 10 | 9 | from test.utils.rdftest import ManifestEntry, params_from_sources | 
| 11 | 10 | from typing import Optional | 
|  | 
| 30 | 29 | def check_entry(entry: ManifestEntry) -> None: | 
| 31 | 30 |     assert entry.action is not None | 
| 32 | 31 |     assert entry.type in VALID_TYPES | 
| 33 |  | -    action_local = MAPPER.to_local( | 
|  | 32 | +    action_path = MAPPER.to_local_path( | 
| 34 | 33 |         entry.action | 
| 35 | 34 |     )  # rebase_url(entry.mf_action, REMOTE_BASE_IRI, LOCAL_BASE_DIR.as_uri()) | 
| 36 | 35 |     if logger.isEnabledFor(logging.DEBUG): | 
| 37 |  | -        action_path = file_uri_to_path(action_local, Path) | 
|  | 36 | +        # action_path = file_uri_to_path(action_local, Path) | 
| 38 | 37 |         logger.debug("action = %s\n%s", action_path, action_path.read_text()) | 
| 39 | 38 |     catcher: Optional[pytest.ExceptionInfo[Exception]] = None | 
| 40 | 39 |     dataset = Dataset() | 
| 41 | 40 | 
 | 
| 42 | 41 |     with ExitStack() as xstack: | 
| 43 | 42 |         if entry.type == RDFT.TestNQuadsNegativeSyntax: | 
| 44 | 43 |             catcher = xstack.enter_context(pytest.raises(Exception)) | 
| 45 |  | -        dataset.parse(action_local, publicID=entry.action, format="nquads") | 
|  | 44 | +        dataset.parse(action_path, publicID=entry.action, format="nquads") | 
| 46 | 45 |     if catcher is not None: | 
| 47 | 46 |         assert catcher.value is not None | 
| 48 | 47 | 
 | 
| 49 | 48 |     if entry.type == RDFT.TestNQuadsPositiveSyntax: | 
| 50 | 49 |         graph_data = dataset.serialize(format="nquads") | 
| 51 | 50 |         result_dataset = Dataset() | 
| 52 | 51 |         result_dataset.parse(data=graph_data, publicID=entry.action, format="nquads") | 
| 53 |  | -        GraphHelper.assert_datasets_isomorphic( | 
|  | 52 | +        GraphHelper.assert_cgraph_isomorphic( | 
| 54 | 53 |             dataset, result_dataset, exclude_bnodes=True | 
| 55 | 54 |         ) | 
| 56 | 55 |         GraphHelper.assert_sets_equals( | 
|  | 
0 commit comments