chore(curriculum): remove __locals from case converter project (#54772)

This commit is contained in:
Ilenia 2024-05-15 10:23:37 +02:00 committed by GitHub
parent 634bb2024d
commit ef610bdd7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View File

@ -22,8 +22,7 @@ You should define a new function named `convert_to_snake_case()`. Don't forget t
test: () => {
assert(runPython(`
import inspect
a = __locals.get("convert_to_snake_case")
inspect.isfunction(a)
inspect.isfunction(convert_to_snake_case)
`));
}
})
@ -36,8 +35,7 @@ Your function should take a parameter named `pascal_or_camel_cased_string`.
test: () => {
assert(runPython(`
import inspect
a = __locals.get('convert_to_snake_case')
'pascal_or_camel_cased_string' in inspect.signature(a).parameters
'pascal_or_camel_cased_string' in inspect.signature(convert_to_snake_case).parameters
`));
}
})

View File

@ -18,8 +18,7 @@ You should define a new function named `main()`. Don't forget the colon at the e
test: () => {
assert(runPython(`
import inspect
a = __locals.get("main")
inspect.isfunction(a)
inspect.isfunction(main)
`));
}
})