Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pveigadecamargo committed Oct 24, 2024
1 parent 5a7382d commit d2ecf52
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/aequilibrae/log/test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

from ...data import siouxfalls_project
from aequilibrae.project import Project
from aequilibrae import log
from aequilibrae.log import _setup_logger


class TestLog(TestCase):
Expand Down Expand Up @@ -58,23 +56,10 @@ def get_logger_file(cls, logger, name="aequilibrae") -> str:

return handlers[0].baseFilename

def test_logger_has_single_handler_named_aquilibrae(self):
_setup_logger()
logger = _setup_logger()
assert len(self.get_handlers(logger)) == 1

def test_default_logger_handler(self):
logger = _setup_logger()
assert self.get_logger_file(logger).endswith("aequilibrae.log")

def test_project_logger(self, create_project):
project = create_project()
assert self.get_logger_file(project.logger).startswith(project.project_base_path)

def test_activate_project_leaves_global_logger_intact(self, create_project):
project = create_project()
assert self.get_logger_file(log.global_logger) != self.get_logger_file(project.logger)

def test_multiple_projects_have_separate_logger(self, create_project):
a = create_project()
b = create_project()
Expand Down

0 comments on commit d2ecf52

Please sign in to comment.