Spaces:
Sleeping
Sleeping
Download turing/tests/behavioral/test_minimum_functionality.py from turing-team/turing-space: direct link, hf CLI and curl.
- Browser
- Download file 2.22 kB
-
https://huggingface.co/spaces/turing-team/turing-space/resolve/main/turing/tests/behavioral/test_minimum_functionality.py
- Command line
-
hf download hf://spaces/turing-team/turing-space/turing/tests/behavioral/test_minimum_functionality.py
-
curl -L -o test_minimum_functionality.py https://huggingface.co/spaces/turing-team/turing-space/resolve/main/turing/tests/behavioral/test_minimum_functionality.py
2.22 kB
| import pytest | |
| # These tests check for basic, obvious classifications | |
| def test_java_mft(java_model, comment, expected_labels, get_predicted_labels): | |
| preds = get_predicted_labels(java_model, comment, "java") | |
| assert preds == expected_labels | |
| def test_python_mft(python_model, comment, expected_labels, get_predicted_labels): | |
| preds = get_predicted_labels(python_model, comment, "python") | |
| assert preds == expected_labels | |
| def test_pharo_mft(pharo_model, comment, expected_labels, get_predicted_labels): | |
| """Tests basic keyword-to-label mapping for Pharo (e.g., 'I am...').""" | |
| preds = get_predicted_labels(pharo_model, comment, "pharo") | |
| assert preds == expected_labels | |