Skip to content
Snippets Groups Projects
Commit 4b76686e authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

fix ligand type parsed from yaml in contrib E2E tests

parent 37743f58
No related branches found
No related tags found
1 merge request!17Prepare v1.0.1
...@@ -578,7 +578,10 @@ class ContributionE2ETestCase(TestCase): ...@@ -578,7 +578,10 @@ class ContributionE2ETestCase(TestCase):
comp = models.Compound.objects.get(iupac_name=c["molecule_iupac"]) comp = models.Compound.objects.get(iupac_name=c["molecule_iupac"])
# test ligand ID has been stored if the X ray data option is checked # test ligand ID has been stored if the X ray data option is checked
if entry_data.get("xray", False) is True: if entry_data.get("xray", False) is True:
self.assertEqual(comp.ligand_id, c.get("ligand_id", None)) ligand_id = c.get("ligand_id", None)
if ligand_id is not None:
ligand_id = str(ligand_id)
self.assertEqual(comp.ligand_id, ligand_id)
# test activity # test activity
bibliography = models.Bibliography.objects.get( bibliography = models.Bibliography.objects.get(
id_source=entry_data["id_source"].strip() id_source=entry_data["id_source"].strip()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment