Skip to content

Commit

Permalink
* tests/test_sim.py (test_sim_with_logging): New method.
Browse files Browse the repository at this point in the history
  • Loading branch information
bje- committed Nov 22, 2024
1 parent 906cae1 commit 0039f79
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

"""A testsuite for the sim module."""

import logging
import unittest

import numpy as np
Expand All @@ -35,6 +36,14 @@ def test_sim(self):
self.context.verbose = True
sim._sim(self.context, self.date_range)

def test_sim_with_logging(self):
"""Test _sim() function."""
origlevel = logging.getLogger().level
logging.getLogger().setLevel(logging.INFO)
self.context.verbose = True
sim._sim(self.context, self.date_range)
logging.getLogger().setLevel(origlevel)

def test_dispatch(self):
"""Test _dispatch() function."""
self.context.verbose = True
Expand Down

0 comments on commit 0039f79

Please sign in to comment.