Download pool/shard007/Python/0062744_test_models.py from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard007/Python/0062744_test_models.py
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard007/Python/0062744_test_models.py
-
curl -L -o 0062744_test_models.py https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard007/Python/0062744_test_models.py
419 Bytes
| from django.test import TestCase | |
| from .factories import EncodeProfileFactory | |
| class EncodeProfileTests(TestCase): | |
| """ | |
| Test the EncodeProfile model. | |
| """ | |
| def setUp(self): | |
| self.profile = EncodeProfileFactory() | |
| def test_shell_command(self): | |
| cmd = self.profile.shell_command('/dir/from', '/dir/to') | |
| self.assertEqual(cmd, ['ffmpeg', '-y', '-i', '/dir/from', '-vn', '/dir/to']) | |