Skip to content

Commit

Permalink
update path for inp/msx files in the file testMSXunit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed Mar 15, 2024
1 parent e189dbb commit e94de4c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions epyt/tests/testMSXunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ class MSXtest(unittest.TestCase):
def setUp(self):
"""Call before every test case."""
# Create EPANET object using the INP file
inpname = os.path.join(os.getcwd(), 'epyt', 'networks', 'Net3-NH2CL.inp')
inpname = os.path.join(os.getcwd(), 'epyt', 'networks', 'msx-examples', 'Net3-NH2CL.inp')
self.epanetClass = epanet(inpname, msx=True)
file_path = os.path.join(os.getcwd(), 'epyt', 'Net3-NH2CL.msx')
file_path = os.path.join(os.getcwd(), 'epyt', 'networks', 'msx-examples', 'Net3-NH2CL.msx')
self.msxClass = epanetmsxapi(file_path)

#self.msxClass.MSXopen(file_path)

def tearDown(self):
"""Call after every test case."""
self.msxClass.MSXclose()
Expand Down Expand Up @@ -258,9 +256,9 @@ def test_MSXgetqual(self):

self.msxClass.MSXclose()
self.epanetClass.unload()
inpname = os.path.join(os.getcwd(), 'epyt', 'networks', 'asce-tf-wdst', 'net2-cl2.inp')
inpname = os.path.join(os.getcwd(), 'epyt', 'networks', 'msx-examples', 'net2-cl2.inp')
self.epanetClass = epanet(inpname, msx=True)
file_path = os.path.join(os.getcwd(), 'epyt', 'net2-cl2.msx')
file_path = os.path.join(os.getcwd(), 'epyt', 'networks', 'msx-examples', 'net2-cl2.msx')
self.msxClass = epanetmsxapi(file_path)

self.msxClass.MSXsolveH()
Expand Down

0 comments on commit e94de4c

Please sign in to comment.