mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-16 16:27:45 +01:00
14 lines
353 B
Python
14 lines
353 B
Python
|
|
from app import challenges
|
||
|
|
|
||
|
|
|
||
|
|
def test_valid():
|
||
|
|
for challenge in challenges:
|
||
|
|
for p in challenge['problems']:
|
||
|
|
val_fn = p['validator']
|
||
|
|
try:
|
||
|
|
val_fn('response', 'input')
|
||
|
|
except Exception:
|
||
|
|
import traceback
|
||
|
|
traceback.print_exc()
|
||
|
|
print(p, 'failed')
|