Download fixtures/seed_project/tests/test_jobqueue.py from tailot/lingologos-thinkingpython: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/datasets/tailot/lingologos-thinkingpython/resolve/main/fixtures/seed_project/tests/test_jobqueue.py
- Command line
-
hf download hf://datasets/tailot/lingologos-thinkingpython/fixtures/seed_project/tests/test_jobqueue.py
-
curl -L -o test_jobqueue.py https://huggingface.co/datasets/tailot/lingologos-thinkingpython/resolve/main/fixtures/seed_project/tests/test_jobqueue.py
290 Bytes
| from jobqueue import drain, head, line, retry | |
| def test_drain(): | |
| assert drain([{'id': 'j'}]) == ['j'] | |
| def test_retry(): | |
| assert retry(5) == 35 | |
| def test_head(): | |
| assert head({'queued': True, 'id': 'j'}) == 'j' | |
| def test_line(): | |
| assert line({'id': 'j', 'at': '9'}) == 'j @ 9' | |