<commit_before>import os
import pytest

from pykechain import get_project
from pykechain.exceptions import ClientError
from tests.classes import TestBetamax
from tests.utils import TEST_TOKEN, TEST_URL, TEST_SCOPE_NAME

ERROR_MESSAGE_REGEX = "Error: insufficient arguments"

@pytest.mark.skipif(os.getenv('TRAVIS')=='true', reason="Skipping tests when using Travis, as not Auth can be provided")
class TestGetProjectHelperNotForTravis(TestBetamax):
    def test_get_project_not_for_travis(self):
        project = get_project(TEST_URL, token=TEST_TOKEN, scope=TEST_SCOPE_NAME)
        self.assertEqual(project.name, TEST_SCOPE_NAME)

    def test_get_project_from_env__not_for_travis(self):
        # setup<commit_msg>typo in the skipif test for pytest<commit_after>import os
import pytest

from pykechain import get_project
from pykechain.exceptions import ClientError
from tests.classes import TestBetamax
from tests.utils import TEST_TOKEN, TEST_URL, TEST_SCOPE_NAME

ERROR_MESSAGE_REGEX = "Error: insufficient arguments"

@pytest.mark.skipif(str(os.getenv('TRAVIS', ''))=='true', reason="Skipping tests when using Travis, as not Auth can be provided")
class TestGetProjectHelperNotForTravis(TestBetamax):
    def test_get_project_not_for_travis(self):
        project = get_project(TEST_URL, token=TEST_TOKEN, scope=TEST_SCOPE_NAME)
        self.assertEqual(project.name, TEST_SCOPE_NAME)

    def test_get_project_from_env__not_for_travis(self):
        # setup
{'fraction_non_alphanumeric': 0.07571623465211459, 'fraction_numerical': 0.0, 'mean_word_length': 6.262376237623762, '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': '7111579', 'n_tokens_mistral': 474, 'n_tokens_neox': 476, 'n_words': 108}