Skip to content

Commit

Permalink
Disable logging in rmgpy.tools.simulateTest
Browse files Browse the repository at this point in the history
  • Loading branch information
mliu49 committed Aug 5, 2019
1 parent 3ac99b4 commit 2b2fe62
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rmgpy/tools/simulateTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
# #
###############################################################################

import logging
import unittest
import os
import os.path
Expand All @@ -36,8 +37,14 @@
from rmgpy.tools.simulate import run_simulation
import rmgpy


class SimulateTest(unittest.TestCase):

def setUp(self):
"""This method is run once before each unit test"""
# Disable logging
logging.disable(logging.WARNING)

def test_minimal(self):
"""Test that we can simlulate a SimpleReactor with sensitivity"""
folder = os.path.join(os.path.dirname(rmgpy.__file__), 'tools/data/sim/simple')
Expand Down Expand Up @@ -96,3 +103,6 @@ def test_mbSampled(self):
def tearDown(self):
import rmgpy.data.rmg
rmgpy.data.rmg.database = None

# Reset logging
logging.disable(logging.NOTSET)

0 comments on commit 2b2fe62

Please sign in to comment.