atomlib.testing
assert_files_equal
Source code in atomlib/testing/__init__.py
check_equals_file
check_equals_file(
name: Union[str, Path], *, skip_lines: int = 0
) -> Callable[[Callable[..., Any]], Callable[..., None]]
Source code in atomlib/testing/__init__.py
check_equals_binary_file
check_equals_binary_file(
name: Union[str, Path]
) -> Callable[[Callable[..., Any]], Callable[..., None]]
Source code in atomlib/testing/__init__.py
assert_structure_equal
Source code in atomlib/testing/__init__.py
check_equals_structure
check_equals_structure(
name: Union[str, Path]
) -> Callable[
[Callable[..., AtomsIOMixin]], Callable[..., None]
]
Test that the wrapped function returns the same structure as contained in name
.
Source code in atomlib/testing/__init__.py
check_parse_structure
check_parse_structure(
name: Union[str, Path]
) -> Callable[
[Callable[..., HasAtoms]], Callable[..., None]
]
Test that name
parses to the same structure as given in the function body.
Source code in atomlib/testing/__init__.py
check_figure_draw
check_figure_draw(
name: Union[str, Path, Sequence[Union[str, Path]]],
savefig_kwarg: Optional[Dict[str, Any]] = None,
) -> Callable[[Callable[..., None]], Callable[..., None]]
Test that the wrapped function draws an identical figure to name
in baseline_images
.