mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
chore(curriculum): remove __locals from case converter project (#54772)
This commit is contained in:
parent
634bb2024d
commit
ef610bdd7b
@ -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
|
||||
`));
|
||||
}
|
||||
})
|
||||
|
||||
@ -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)
|
||||
`));
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user