Skip to content

Commit c9329c2

Browse files
authored
Use GitLab for ModPowerSystems (#63)
Use RWTH AAchen's GitLab for ModPowerSystems.
1 parent 6c32cbe commit c9329c2

4 files changed

Lines changed: 27 additions & 16 deletions

File tree

repos.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,17 @@
939939
["*", "obsolete"]
940940
]
941941
},
942+
"ModPowerSystems": {
943+
"names": ["ModPowerSystems"],
944+
"git": "https://git.rwth-aachen.de/acs/public/simulation/modpowersystems.git",
945+
"zipfile": "https://git.rwth-aachen.de/acs/public/simulation/modpowersystems/-/archive/{0}/modpowersystems-{0}.zip",
946+
"branches": {"master": "master"},
947+
"ignore-tags": ["msp_example"],
948+
"support": [
949+
["prerelease", "noSupport"],
950+
["*", "experimental"]
951+
]
952+
},
942953
"MultiPhaseMixtureMedia": {
943954
"names": ["MultiPhaseMixture"],
944955
"github": "jwindahlModelon/MultiPhaseMixtureMedia",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
argparse
22
atlassian-python-api
3-
OMPython
3+
OMPython==4.0.0
44
pygit2
55
PyGithub
66
semantic_version

tests/test_libentry.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def checkout_repo(github_repo: str, refname: str) -> Path:
4545
@classmethod
4646
def tearDownClass(cls):
4747
"""Remove git repositories, stop OMC session."""
48-
cls.omc.sendExpression("exit")
4948
shutil.rmtree(cls.cache_dir)
5049

5150
def tearDown(self):

tests/test_main.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,21 @@ def test_run_check_missing(self) -> None:
3232

3333
__main__.main(["check-missing"])
3434

35-
self.assertIn('''modelica-3rdparty/BuildSysPro
36-
modelica-3rdparty/electrolytemedia
37-
modelica-3rdparty/ExternalMedia
38-
modelica-3rdparty/FluidSystemComponents
39-
modelica-3rdparty/Greenhouses-Library
40-
modelica-3rdparty/HeatTransferComponents
41-
modelica-3rdparty/LCC_HVDC
42-
modelica-3rdparty/MoSDH
43-
modelica-3rdparty/NeuralNetwork
44-
modelica-3rdparty/OpenHydraulics
45-
modelica-3rdparty/ShipSIM
46-
modelica-3rdparty/SMEHV
47-
modelica-3rdparty/ThermoSysPro
48-
''', out.getvalue())
35+
out_string = out.getvalue()
36+
self.assertIn('modelica-3rdparty/BuildSysPro', out_string)
37+
self.assertIn('modelica-3rdparty/electrolytemedia', out_string)
38+
self.assertIn('modelica-3rdparty/ExternalMedia', out_string)
39+
self.assertIn('modelica-3rdparty/FluidSystemComponents', out_string)
40+
self.assertIn('modelica-3rdparty/Greenhouses-Library', out_string)
41+
self.assertIn('modelica-3rdparty/HeatTransferComponents', out_string)
42+
self.assertIn('modelica-3rdparty/LCC_HVDC', out_string)
43+
self.assertIn('modelica-3rdparty/MoSDH', out_string)
44+
self.assertIn('modelica-3rdparty/NeuralNetwork', out_string)
45+
self.assertIn('modelica-3rdparty/OpenHydraulics', out_string)
46+
self.assertIn('modelica-3rdparty/ShipSIM', out_string)
47+
self.assertIn('modelica-3rdparty/SMEHV', out_string)
48+
self.assertIn('modelica-3rdparty/ThermoSysPro', out_string)
49+
4950
finally:
5051
sys.stdout = saved_stdout
5152

0 commit comments

Comments
 (0)