# Path: statik/generator.py
# def generate(input_path, output_path=None, in_memory=False, safe_mode=False, deploy_method=None, error_context=None):
#     """Executes the Statik site generator using the given parameters.
#     """
#     project = StatikProject(input_path, safe_mode=safe_mode, error_context=error_context)
#     return project.generate(output_path=output_path, in_memory=in_memory, deploy_method=deploy_method)


import unittest
import os.path
import xml.etree.ElementTree as ET
import logging
from statik.generator import generate
# -*- coding: utf-8 -*-



logger = logging.getLogger(__name__)
DEBUG = (os.environ.get('DEBUG', "false") in ["true", "1"])
LOGGERS = os.environ.get('LOGGERS', "statik").split(",")


class TestSelfReferencingModels(unittest.TestCase):

    def setUp(self):
        if DEBUG:
            logging.basicConfig(
                level=logging.WARNING,
                format='%(asctime)s\t%(name)s\t%(levelname)s\t%(message)s',
            )
            for logger_name in LOGGERS:
                logger_pkg = logging.getLogger(logger_name)

# Path: statik/generator.py
# def generate(input_path, output_path=None, in_memory=False, safe_mode=False, deploy_method=None, error_context=None):
#     """Executes the Statik site generator using the given parameters.
#     """
#     project = StatikProject(input_path, safe_mode=safe_mode, error_context=error_context)
#     return project.generate(output_path=output_path, in_memory=in_memory, deploy_method=deploy_method)


# Path: tests/integration/test_self_referencing_models.py
import unittest
import os.path
import xml.etree.ElementTree as ET
import logging
from statik.generator import generate

# -*- coding: utf-8 -*-



logger = logging.getLogger(__name__)
DEBUG = (os.environ.get('DEBUG', "false") in ["true", "1"])
LOGGERS = os.environ.get('LOGGERS', "statik").split(",")


class TestSelfReferencingModels(unittest.TestCase):

    def setUp(self):
        if DEBUG:
            logging.basicConfig(
                level=logging.WARNING,
                format='%(asctime)s\t%(name)s\t%(levelname)s\t%(message)s',
            )
            for logger_name in LOGGERS:
                logger_pkg = logging.getLogger(logger_name)

                logger_pkg.setLevel(logging.DEBUG)