Skip to content

Commit

Permalink
style: format code with Black, isort and Prettier (#1102)
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 172020d according to
the output
from Black, isort and Prettier.

Details: None

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] authored Oct 25, 2023
1 parent 172020d commit 66da6f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/core/recipes/dftb_recipes/test_dftb_recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,14 @@ def test_relax_job_cu_supercell_cell_relax(tmpdir):
)
assert np.array_equal(output["atoms"].cell.array, atoms.cell.array) is False


def test_relax_job_cu_supercell_errors(tmpdir):
tmpdir.chdir()
with pytest.raises(ValueError):
atoms = bulk("Cu") * (2, 1, 1)
atoms[0].position += 0.5
relax_job(atoms, kpts=(3, 3, 3), calc_swaps={"MaxSteps": 1, "Hamiltonian_MaxSccIterations": 100})
relax_job(
atoms,
kpts=(3, 3, 3),
calc_swaps={"MaxSteps": 1, "Hamiltonian_MaxSccIterations": 100},
)

0 comments on commit 66da6f0

Please sign in to comment.