Skip to content

Commit

Permalink
tests(utils): refactor TestPCDFromDir
Browse files Browse the repository at this point in the history
  • Loading branch information
adosar committed Jan 16, 2025
1 parent 62943f6 commit 757370c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,12 @@ def setUp(self):
self.tempdir = tempfile.TemporaryDirectory(dir='/tmp')
self.outname = os.path.join(self.tempdir.name, 'pcd_data')
self.dirname = 'tests/structures'
self.names = [Path(i).stem for i in os.listdir(self.dirname)]

def test_pcd_from_dir(self):
pcd_from_dir(dirname=self.dirname, outname=self.outname)

# Check the number of converted files.
self.assertEqual(len(self.names), len(os.listdir(self.outname)))
self.assertEqual(len(os.listdir(self.dirname)), len(os.listdir(self.outname)))

def tearDown(self):
self.tempdir.cleanup()
Expand Down

0 comments on commit 757370c

Please sign in to comment.