Exemple #1
0
        private async Task InstallAndEnablePytestActionAsync()
        {
            LogEvent(ConfigureTestFrameworkInfoBarActions.EnableAndInstallPytest);
            Close();

            if (!await InstallPyTestAsync())
            {
                var generalOutputWindow = OutputWindowRedirector.GetGeneral(Site);
                generalOutputWindow.ShowAndActivate();
            }

            await SetPropertyAsync(PythonConstants.TestFrameworkSetting, "Pytest");
        }
Exemple #2
0
        private async Task InstallPytestActionAsync()
        {
            LogEvent(ConfigureTestFrameworkInfoBarActions.InstallPytest);
            Close();

            var result = await InstallPyTestAsync();

            if (!result)
            {
                var generalOutputWindow = OutputWindowRedirector.GetGeneral(Site);
                generalOutputWindow.ShowAndActivate();
            }
        }