<commit_before>import sys
import pytest
import yaml
sys.path.append('.')
from python2_consul.file import File

@pytest.fixture(scope='session')
def valid_yaml_file(tmpdir_factory):
    fn = tmpdir_factory.mktemp('temp_dir').join('valid.yaml')
    fn.write("key: value")
    return str(fn)

@pytest.fixture(scope='session')
def directory_of_yaml(tmpdir_factory):
    fn = tmpdir_factory.mktemp('temp_dir')
    file1 = fn.join('valid1.yaml')
    file2 = fn.join('valid2.yaml')
    file1.write("key1: value1")
    file2.write("key2: value2")
    return str(fn)

def test_is_directory(tmpdir):
    temp_dir = tmpdir.mkdir("test_dir")
    assert File().is_directory(temp_dir) == True

def test_is_file(valid_yaml_file):
    assert File().is_file(valid_yaml_file) == True<commit_msg>Attempt to fix temporary dir so it'll work with circleci<commit_after>import sys
import pytest
import yaml
sys.path.append('.')
from python2_consul.file import File

@pytest.fixture(scope='session')
def valid_yaml_file(tmpdir_factory):
    fn = tmpdir_factory.mktemp('temp_dir').join('valid.yaml')
    fn.write("key: value")
    return str(fn)

@pytest.fixture(scope='session')
def directory_of_yaml(tmpdir_factory):
    fn = tmpdir_factory.mktemp('/tmp')
    file1 = fn.join('valid1.yaml')
    file2 = fn.join('valid2.yaml')
    file1.write("key1: value1")
    file2.write("key2: value2")
    return str(fn)

def test_is_directory(tmpdir):
    temp_dir = tmpdir.mkdir("test_dir")
    assert File().is_directory(temp_dir) == True

def test_is_file(valid_yaml_file):
    assert File().is_file(valid_yaml_file) == True
{'fraction_non_alphanumeric': 0.1406151914626491, 'fraction_numerical': 0.013810420590081607, 'mean_word_length': 5.10727969348659, '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': '5857260', 'n_tokens_mistral': 576, 'n_tokens_neox': 573, 'n_words': 102}