Skip to content

Commit

Permalink
Pytest to pytest (#22062)
Browse files Browse the repository at this point in the history
  • Loading branch information
himi11 authored Sep 22, 2023
1 parent dfc939b commit 3b6c47b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/common/utils/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ export namespace Testing {
export const cancelUnittestExecution = l10n.t('Canceled unittest test execution');
export const errorUnittestExecution = l10n.t('Unittest test execution error');
export const cancelPytestExecution = l10n.t('Canceled pytest test execution');
export const errorPytestExecution = l10n.t('Pytest test execution error');
export const errorPytestExecution = l10n.t('pytest test execution error');
}

export namespace OutdatedDebugger {
Expand Down
2 changes: 1 addition & 1 deletion src/client/testing/testController/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export async function startTestIdServer(testIds: string[]): Promise<number> {
}

export function buildErrorNodeOptions(uri: Uri, message: string, testType: string): ErrorTestItemOptions {
const labelText = testType === 'pytest' ? 'Pytest Discovery Error' : 'Unittest Discovery Error';
const labelText = testType === 'pytest' ? 'pytest Discovery Error' : 'Unittest Discovery Error';
return {
id: `DiscoveryError:${uri.fsPath}`,
label: `${labelText} [${path.basename(uri.fsPath)}]`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class PytestController implements ITestFrameworkController {
testController.items.add(
createErrorTestItem(testController, {
id: `DiscoveryError:${workspace.uri.fsPath}`,
label: `Pytest Discovery Error [${path.basename(workspace.uri.fsPath)}]`,
label: `pytest Discovery Error [${path.basename(workspace.uri.fsPath)}]`,
error: util.format(
`${cancel} discovering pytest tests (see Output > Python):\r\n`,
message.length > 0 ? message : ex,
Expand Down

0 comments on commit 3b6c47b

Please sign in to comment.