Skip to content

Commit

Permalink
Add andes version requirement in TestMatrices
Browse files Browse the repository at this point in the history
  • Loading branch information
jinningwang committed May 25, 2024
1 parent cddb7ef commit 59fc57a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_andes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import unittest
import numpy as np
import pkg_resources
from pkg_resources import parse_version

import andes
import ams
Expand All @@ -17,6 +19,10 @@ class TestMatrices(unittest.TestCase):
Tests for system matrices consistency.
"""

andes_version = pkg_resources.get_distribution("andes").version
if parse_version(andes_version) < parse_version('1.9.2'):
raise unittest.SkipTest("Requires ANDES version >= 1.9.2")

sp = ams.load(ams.get_case('5bus/pjm5bus_demo.xlsx'),
setup=True, no_output=True, default_config=True,)
sa = sp.to_andes(setup=True, no_output=True, default_config=True,)
Expand Down

0 comments on commit 59fc57a

Please sign in to comment.