**Summary** Add unit tests for current modules. Some of them do not have packages installed. **Detailed Description** According to [Codecov](https://codecov.io/gh/deepmodeling/dpdata/tree/devel/dpdata), the following codes doesn't have unit tests. system: - [ ] `System.__str__` - [ ] `System.dump` - [ ] `System.extend` - [x] `System.predict` (#277) - [ ] `LabeledSystem.__str__` - [x] `MultiSystems.__len__` (fixed by #172) - [ ] `MultiSystems.__repr__` - [x] `MultiSystems.__str__` (fixed by #172) - [ ] `MultiSystems.from_dir` - [x] `MultiSystems.get_nframes` (fixed by #172) - [ ] `MultiSystems.predict` - [ ] `MultiSystems.pick_atom_idx` formats: - [ ] `amber/md`: `from_system` - [x] `ase/structure`: `to_system` (fixed by #171) - [ ] `ase/structure`: `to_labeled_system` - [x] `pymatgen/structure`: `to_system` (fixed by #171) - [x] `pymatgen/structure`: `to_labeled_system` (fixed by #171) - [ ] `mol`: `to_bond_order_system` - [x] `sdf`: `to_bond_order_system` (#188) - [ ] `siesta/output`: `from_system` - [ ] `siesta/aimd_output`: `from_system`
Summary
Add unit tests for current modules. Some of them do not have packages installed.
Detailed Description
According to Codecov, the following codes doesn't have unit tests.
system:
System.__str__System.dumpSystem.extendSystem.predict(add driver plugin system framework; migrate DP predict to DPDriver #277)LabeledSystem.__str__MultiSystems.__len__(fixed by fix two bugs that implemented in #168 #172)MultiSystems.__repr__MultiSystems.__str__(fixed by fix two bugs that implemented in #168 #172)MultiSystems.from_dirMultiSystems.get_nframes(fixed by fix two bugs that implemented in #168 #172)MultiSystems.predictMultiSystems.pick_atom_idxformats:
amber/md:from_systemase/structure:to_system(fixed by enable unittests of ase and pymatgen #171)ase/structure:to_labeled_systempymatgen/structure:to_system(fixed by enable unittests of ase and pymatgen #171)pymatgen/structure:to_labeled_system(fixed by enable unittests of ase and pymatgen #171)mol:to_bond_order_systemsdf:to_bond_order_system(Bug fix of bond_order_system dump to sdf file #188)siesta/output:from_systemsiesta/aimd_output:from_system