all repos — py-vite @ b23f017cf4be350509cb13aeb58bab0a8acf6978

the original vite, written in python

tests/test_create_project.py (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
import unittest
from unittest.mock import MagicMock
import vite

class ViteTest(unittest.TestCase):
    def test_create_project(self):
        mock_path = MagicMock('xD')
        vite.create_project(mock_path)
        mock_path.assert_called_with('xD')

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