File: test_testing_configuration.py

package info (click to toggle)
huggingface-hub 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,424 kB
  • sloc: python: 45,857; sh: 434; makefile: 33
file content (6 lines) | stat: -rw-r--r-- 172 bytes parent folder | download
1
2
3
4
5
6
from huggingface_hub import get_token


def test_no_token_in_staging_environment():
    """Make sure no token is set in test environment."""
    assert get_token() is None