Repository: biosimulators/Biosimulators_test_suite (language: python)

Issue:
Fix synthetic changes
Add setting models to child changes, to duplicate what biosimulators_utils does when reading in an actual SED-ML file.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e9c8677..a5651f7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -49,10 +49,11 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-pip-
 
-      - name: Install pip and setuptools
+      - name: Install pip
         run: |
-          #python -m pip install --upgrade pip
-          python -m pip install --upgrade setuptools
+          python -m pip install pip==23.0.0
+          python -m pip install pip==23.0.0
+          python -m pip --version
 
       - name: Install Java # for pyNeuroML
         uses: actions/setup-java@v2
@@ -163,7 +164,7 @@ jobs:
         uses: actions/checkout@v2
         with:
           fetch-depth: 1
-          ref: deploy
+          branch: deploy
 
       - name: Configure Git
         run: |


Test patch:
diff --git a/biosimulators_test_suite/_version.py b/biosimulators_test_suite/_version.py
index 95a0c62..81cb954 100644
--- a/biosimulators_test_suite/_version.py
+++ b/biosimulators_test_suite/_version.py
@@ -1,1 +1,1 @@
-__version__ = '0.1.87'
+__version__ = '0.1.88'
diff --git a/biosimulators_test_suite/test_case/sedml.py b/biosimulators_test_suite/test_case/sedml.py
index 975f140..0ec0c91 100644
--- a/biosimulators_test_suite/test_case/sedml.py
+++ b/biosimulators_test_suite/test_case/sedml.py
@@ -309,7 +309,9 @@ def build_synthetic_archives(self, specifications, curated_archive, curated_arch
                         new_value=value,
                     )
                 )
-
+            for mod in [model_1, model_2]:
+                for change in mod.changes:
+                    change.model = mod.id
             n_children = {}
             for child in node.getchildren():
                 _, _, _, child_target, _ = get_xml_node_namespace_tag_target(
@@ -448,6 +450,9 @@ def build_synthetic_archives(self, specifications, curated_archive, curated_arch
                         new_value=value,
                     )
                 )
+            for mod in [model_1, model_2]:
+                for change in mod.changes:
+                    change.model = mod.id
 
             n_children = {}
             for child in node.getchildren():