File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
_tests/unit_tests/components Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ """Unit test(s) for old PACKMOL wrapper import path."""
2+
3+ import pytest
4+
5+ from openff .interchange .warnings import InterchangeDeprecationWarning
6+
7+
8+ def test_deprecation_warning_thrown ():
9+ with pytest .warns (
10+ InterchangeDeprecationWarning ,
11+ match = "openff.interchange.packmol` instead" ,
12+ ):
13+ from openff .interchange .components ._packmol import UNIT_CUBE # noqa: F401
Original file line number Diff line number Diff line change 1010 solvate_topology ,
1111 solvate_topology_nonwater ,
1212)
13+ from openff .interchange .warnings import InterchangeDeprecationWarning
1314
1415__all__ = (
1516 "RHOMBIC_DODECAHEDRON" ,
2324import warnings
2425
2526warnings .warn (
26- "This submodule is now part of the public API. Import from `openff.interchange.packmol instead." ,
27+ "This submodule is now part of the public API. Import from `openff.interchange.packmol` instead." ,
28+ InterchangeDeprecationWarning ,
2729)
You can’t perform that action at this time.
0 commit comments