Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed Nov 20, 2024
1 parent cbfecf6 commit 4dd1e87
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/unit/test_input.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import unittest
from stinx.input import sphinx


class TestStinx(unittest.TestCase):

def test_wrap_string(self):
with_wrap_string = sphinx.pawPot.species.create(
potential="my_potential_path",
potType="AtomPAW",
)
self.assertEqual(with_wrap_string, {'potential': '"my_potential_path"', 'potType': '"AtomPAW"'})
without_wrap_string = sphinx.pawPot.species.create(
potential="my_potential_path",
potType="AtomPAW",
wrap_string=False,
)
self.assertEqual(without_wrap_string, {'potential': 'my_potential_path', 'potType': 'AtomPAW'})


if __name__ == "__main__":
unittest.main()

0 comments on commit 4dd1e87

Please sign in to comment.