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