Skip to content

Commit

Permalink
Fix tests for float CLI input
Browse files Browse the repository at this point in the history
  • Loading branch information
Rastislav Turanyi committed Nov 1, 2024
1 parent 844e8c0 commit 0956286
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_phonons_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,15 @@ def test_supercell(supercell_arg, supercell, supercell_matrix, tmp_path):
("--supercell", [2]),
("--supercell", ["2x2x2"]),
("--supercell", ["2 2 2"]),
("--supercell", [2.1, 2.1, 2.1]),
("--supercell", ["2.1", "2.1", "2.1"]),
("--supercell", [2, 2, "a"]),
("--supercell", [2, 2]),
("--supercell", [2] * 6),
("--supercell", [2] * 9),
("--supercell-matrix", [2]),
("--supercell-matrix", ["2x2x2" * 3]),
("--supercell-matrix", ["2 2 2 2 2 2 2 2 2"]),
("--supercell-matrix", [2.1] * 9),
("--supercell-matrix", ["2.1"] * 9),
("--supercell-matrix", [2, 2, "a"] * 3),
("--supercell-matrix", [2] * 6),
("--supercell-matrix", [2] * 12),
Expand All @@ -337,9 +337,6 @@ def test_invalid_supercell(supercell_arg, supercell, tmp_path):
)
assert result.exit_code == 1 or result.exit_code == 2

print(result.exception)
# assert isinstance(result.exception, ValueError)


def test_minimize_kwargs(tmp_path):
"""Test setting optimizer function and writing optimized structure."""
Expand Down

0 comments on commit 0956286

Please sign in to comment.