Skip to content

Commit 0b4c462

Browse files
committed
Fix new unit test for input file reading.
Reset completed networks in test setup by initializing CoreEdgeReactionModel
1 parent ee84ce4 commit 0b4c462

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/rmgpy/rmg/inputTest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
import rmgpy.rmg.input as inp
3333
from rmgpy.rmg.main import RMG
34+
from rmgpy.rmg.model import CoreEdgeReactionModel
3435
from rmgpy.ml.estimator import ADMONITION
3536

3637
import pytest
@@ -384,6 +385,7 @@ def setup_method(self):
384385
"""This method is run before every test in this class"""
385386
global rmg
386387
# Reset the completed networks set before each test
388+
rmg.reaction_model = CoreEdgeReactionModel()
387389
rmg.reaction_model.completed_pdep_networks = set()
388390

389391
def test_completed_networks_single(self):

0 commit comments

Comments
 (0)