Ejemplo n.º 1
0
def test_get_token_id_adds_padding():
    assert applications.get_token_id("NDMxMjMxMjMxMjM.blam.bop") == 43123123123
Ejemplo n.º 2
0
def test_get_token_id_handles_invalid_token(token):
    with pytest.raises(ValueError, match="Unexpected token format"):
        applications.get_token_id(token)
Ejemplo n.º 3
0
def test_get_token_id_extracts_id():
    assert applications.get_token_id(
        "MTE1NTkwMDk3MTAwODY1NTQx.x.y") == 115590097100865541