all repos — py-vite @ bb98e0cfa31dde650c1041aea6b9b86855cb36a2

the original vite, written in python

tests/test_create_project.py (view raw)

 1import unittest
 2from unittest.mock import MagicMock
 3import vite
 4
 5class ViteTest(unittest.TestCase):
 6    def test_create_project(self):
 7        mock_path = MagicMock('xD')
 8        vite.create_project(mock_path)
 9        mock_path.assert_called_with('xD')
10
11if __name__ == '__main__':
12    unittest.main()