all repos — py-vite @ f2f9eb9e25dfaf46f23f5d5e9d622b58d5f68c6a

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()