Skip to content

Commit

Permalink
Fix coverage issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tovrstra committed Mar 28, 2021
1 parent f826aee commit 536ee5c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions iodata/test/test_overlap.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ def test_overlap_l1():
atcoords = np.zeros((1, 3))
with pytest.raises(ValueError):
_ = compute_overlap(dbasis, atcoords)
obasis = MolecularBasis([], {}, 'L2')
with pytest.raises(ValueError):
_ = compute_overlap(obasis, atcoords, dbasis, atcoords)


def test_overlap_two_basis_exceptions():
with path('iodata.test.data', 'hf_sto3g.fchk') as fn_fchk:
data = load_one(fn_fchk)
with pytest.raises(TypeError):
compute_overlap(data.obasis, data.atcoords, data.obasis, None)
with pytest.raises(TypeError):
compute_overlap(data.obasis, data.atcoords, None, data.atcoords)


FNS_TWO_BASIS = [
Expand Down

0 comments on commit 536ee5c

Please sign in to comment.