Fix name of Python stdlib extraction feature flag

This commit is contained in:
Henry Mercer
2024-10-17 11:25:52 +01:00
parent c4700633cb
commit d591d172c8
9 changed files with 43 additions and 19 deletions

View File

@@ -495,6 +495,17 @@ test("non-legacy feature flags should not end with _enabled", async (t) => {
}
});
test("non-legacy feature flags should not start with codeql_action_", async (t) => {
for (const [feature, config] of Object.entries(featureConfig)) {
if (!config.legacyApi) {
t.false(
feature.startsWith("codeql_action_"),
`non-legacy feature ${feature} should not start with 'codeql_action_'`,
);
}
}
});
function assertAllFeaturesUndefinedInApi(
t: ExecutionContext<unknown>,
loggedMessages: LoggedMessage[],