Skip to content

Commit 15ccba1

Browse files
[pre-commit.ci] auto fixes from pre-commit hooks
1 parent 8f8253c commit 15ccba1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/diffpy/structure/structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"""This module defines class `Structure`."""
1616

1717
import copy as copymod
18+
import warnings
1819

1920
import numpy
20-
import warnings
2121

2222
from diffpy.structure.atom import Atom
2323
from diffpy.structure.lattice import Lattice

tests/test_structure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ def test___copy__(self):
120120
# """check Structure.getLastAtom()"""
121121
# return
122122

123-
124-
125123
def test_addNewAtom(self):
126124
"""Duplicate test for the deprecated addNewAtom method.
127125
@@ -620,6 +618,7 @@ def test_pickling(self):
620618

621619
# End of class TestStructure
622620

621+
623622
# ----------------------------------------------------------------------------
624623
@pytest.mark.parametrize(
625624
"existing, atype, xyz, expected_len, expected_element, expected_xyz",
@@ -672,5 +671,6 @@ def test_add_new_atom_duplicate():
672671
assert structure[-1].element == "C"
673672
assert numpy.allclose(structure[-1].xyz, [0.1, 0.2, 0.3])
674673

674+
675675
if __name__ == "__main__":
676676
unittest.main()

0 commit comments

Comments
 (0)