<commit_before>import file_watch
import os
import pytest
import time

from vent.helpers.paths import PathDirs

def test_settings():
    """ Tests settings """
    os.environ['REMOTE_REDIS_HOST'] = "localhost"
    os.environ['REMOTE_REDIS_PORT'] = "6379"
    import settings

def test_file_queue():
    """ Tests simulation of new file """
    pathDirs = PathDirs()
    images = file_watch.file_queue('/tmp/foo')
    assert images[0] == False
    images = file_watch.file_queue('host_/tmp/foo', template_path=pathDirs.base_dir)
    assert images[0] == True
    assert type(images[1]) == list<commit_msg>use pythonic names<commit_after>import file_watch
import os
import pytest
import time

from vent.helpers.paths import PathDirs

def test_settings():
    """ Tests settings """
    os.environ['REMOTE_REDIS_HOST'] = "localhost"
    os.environ['REMOTE_REDIS_PORT'] = "6379"
    import settings

def test_file_queue():
    """ Tests simulation of new file """
    path_dirs = PathDirs()
    images = file_watch.file_queue('/tmp/foo')
    assert images[0] == False
    images = file_watch.file_queue('host_/tmp/foo', template_path=path_dirs.base_dir)
    assert images[0] == True
    assert type(images[1]) == list
{'fraction_non_alphanumeric': 0.12386457473162675, 'fraction_numerical': 0.011560693641618497, 'mean_word_length': 4.246753246753247, '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': '5815758', 'n_tokens_mistral': 402, 'n_tokens_neox': 398, 'n_words': 91}