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

from dotenv import load_dotenv

from auth0plus.oauth import get_token


load_dotenv('.env')


class TestGetAToken(unittest.TestCase):
    def setUp(self):
        """
        Get a non-interactive client secret
        """
        self.domain = os.getenv('DOMAIN')
        self.client_id = os.getenv('CLIENT_ID')
        self.secret_id = os.getenv('CLIENT_SECRET')

    def test_get_a_token(self):
        """
        Test getting a 24 hour token from the oauth token endpoint
        """
        token = get_token(self.domain, self.client_id, self.secret_id)
        assert token['access_token']


<commit_msg>Add unittest skip for CI<commit_after># -*- coding: utf-8 -*-
import os
import unittest

from dotenv import load_dotenv

from auth0plus.oauth import get_token


load_dotenv('.env')


class TestGetAToken(unittest.TestCase):
    @unittest.skipIf(skip, 'SKIP_INTEGRATION_TESTS==1')
    def setUp(self):
        """
        Get a non-interactive client secret
        """
        self.domain = os.getenv('DOMAIN')
        self.client_id = os.getenv('CLIENT_ID')
        self.secret_id = os.getenv('CLIENT_SECRET')

    def test_get_a_token(self):
        """
        Test getting a 24 hour token from the oauth token endpoint
        """
        token = get_token(self.domain, self.client_id, self.secret_id)
        assert token['access_token']



{'fraction_non_alphanumeric': 0.11048557353976073, 'fraction_numerical': 0.0063335679099225895, 'mean_word_length': 2.761904761904762, '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': '242569', 'n_tokens_mistral': 463, 'n_tokens_neox': 453, 'n_words': 106}