예제 #1
0
    def test_will_create_virtualenv_in_devenv_dir(self, mock_virtualenv, mock_subpprocess):
        EnvironmentBuilder.build('project', self._config)

        mock_virtualenv.assert_called_once_with(os.path.join(os.getcwd(), '.devenv', 'project'))
예제 #2
0
    def test_will_create_downloads_dir(self, mock_virtualenv, mock_subpprocess):
        EnvironmentBuilder.build('project', self._config)

        self.assertTrue(os.path.exists(os.path.join('.devenv', 'project', 'downloads')))
예제 #3
0
    def test_will_create_devenv_dir(self, mock_virtualenv, mock_subpprocess):
        EnvironmentBuilder.build('', self._config)

        self.assertTrue(os.path.exists('.devenv'))