import pytest
from ellar.common.helper.module_loading import module_dir
from ellar.core import conf


def test_module_dir():
    module_path = module_dir(conf)
    assert "ellar/core/conf" in module_path


def test_invalid_module_check():
    with pytest.raises(ValueError):
        module_dir({})
