Download fixtures/seed_project/tests/test_session.py from tailot/lingologos-thinkingpython: direct link, hf CLI and curl.
- Browser
- Download file 274 Bytes
-
https://huggingface.co/datasets/tailot/lingologos-thinkingpython/resolve/main/fixtures/seed_project/tests/test_session.py
- Command line
-
hf download hf://datasets/tailot/lingologos-thinkingpython/fixtures/seed_project/tests/test_session.py
-
curl -L -o test_session.py https://huggingface.co/datasets/tailot/lingologos-thinkingpython/resolve/main/fixtures/seed_project/tests/test_session.py
274 Bytes
| from session import bind, tag, tokens, ttl | |
| def test_tokens(): | |
| assert tokens(['A', 'B']) == ['a', 'b'] | |
| def test_ttl(): | |
| assert ttl(2) == 120 | |
| def test_bind(): | |
| assert bind({'verified': True, 'id': 7}) == 7 | |
| def test_tag(): | |
| assert tag({'id': 'q'}) == 'user q' | |