<commit_before>"""Contains the unit tests for the inner directory package"""

import unittest
import os
import tempfile
import pathlib

from classyfd import Directory, InvalidDirectoryValueError, utils, config

# Tests
class TestDirectory(unittest.TestCase):
    """Contains the cross-platform tests"""
    def setUp(self):
        self.fake_path = os.path.abspath("hello-world-dir")
        return
    
    def test_create_directory_object(self):
        d = Directory(self.fake_path)
        self.assertTrue(d)
        return
    
    def test_raise_exception_for_empty_str_path_when_creating_dir_object(self):
        self.assertRaises(InvalidDirectoryValueError, Directory, "")
        return    <commit_msg>Add module/global variables to tests/unit/directory/test_directory.py<commit_after>"""Contains the unit tests for the inner directory package"""

import unittest
import os
import tempfile
import pathlib

from classyfd import Directory, InvalidDirectoryValueError, utils, config


# Globals
OPERATING_SYSTEM = platform.system().lower()
IS_OS_POSIX_COMPLIANT = utils.determine_if_os_is_posix_compliant()

IS_UNIX_LIKE_ROOT_USER = None
if IS_OS_POSIX_COMPLIANT:
    # Determine if the User Running Python is "root" or not
    IS_UNIX_LIKE_ROOT_USER = utils.determine_if_running_as_root_user()
    

# Tests
class TestDirectory(unittest.TestCase):
    """Contains the cross-platform tests"""
    def setUp(self):
        self.fake_path = os.path.abspath("hello-world-dir")
        return
    
    def test_create_directory_object(self):
        d = Directory(self.fake_path)
        self.assertTrue(d)
        return
    
    def test_raise_exception_for_empty_str_path_when_creating_dir_object(self):
        self.assertRaises(InvalidDirectoryValueError, Directory, "")
        return    
{'fraction_non_alphanumeric': 0.07790762381747357, 'fraction_numerical': 0.0, 'mean_word_length': 4.0647887323943666, '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': '1199095', 'n_tokens_mistral': 544, 'n_tokens_neox': 539, 'n_words': 119}