# Path: baroque/utils/configreader.py
# def read_config_or_default(path_to_file):
# def readconfig(path_to_file):
# 
# Path: baroque/exceptions/configuration.py
# class ConfigurationNotFoundError(Exception):
#     """Raised when configuration source file is not available"""
#     pass
# 
# class ConfigurationParseError(Exception):
#     """Raised on failures in parsing configuration data"""
#     pass


import os
import pytest
from baroque.utils import configreader
from baroque.exceptions.configuration import ConfigurationNotFoundError, \
    ConfigurationParseError


def test_readconfig():
    # path is not a regulare file
    with pytest.raises(ConfigurationNotFoundError):
        configreader.readconfig('abcdefgh')

# Path: baroque/utils/configreader.py
# def read_config_or_default(path_to_file):
# def readconfig(path_to_file):
# 
# Path: baroque/exceptions/configuration.py
# class ConfigurationNotFoundError(Exception):
#     """Raised when configuration source file is not available"""
#     pass
# 
# class ConfigurationParseError(Exception):
#     """Raised on failures in parsing configuration data"""
#     pass


# Path: tests/utils/test_configreader.py
import os
import pytest
from baroque.utils import configreader
from baroque.exceptions.configuration import ConfigurationNotFoundError, \
    ConfigurationParseError



def test_readconfig():
    # path is not a regulare file
    with pytest.raises(ConfigurationNotFoundError):
        configreader.readconfig('abcdefgh')

        pytest.fail()