<commit_before># -*- coding: utf-8 -*-
import pytest
import os


def test_get_token():
    """Make sure we are indeed getting a token"""
    """This is assuming you have a slack token in your environmental variables"""
    slack_token = os.getenv('SLACK_TOKEN')
    assert slack_token is not None<commit_msg>updated test to use function<commit_after># -*- coding: utf-8 -*-
import pytest
import os
from .. sleeper import get_token


def test_get_token():
    """Make sure we are indeed getting a token"""
    """This is assuming you have a slack token in your environmental variables"""
    slack_token = os.getenv('SLACK_TOKEN')
    assert get_token() == slack_token
{'fraction_non_alphanumeric': 0.10794602698650675, 'fraction_numerical': 0.0029985007496251873, 'mean_word_length': 3.948148148148148, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2068847', 'n_tokens_mistral': 194, 'n_tokens_neox': 191, 'n_words': 77}