Basic System (#31)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#31
This commit is contained in:
2025-07-23 06:47:07 +12:00
parent 49e02ed97d
commit df896878f1
75 changed files with 3821 additions and 1429 deletions

View File

@ -5,7 +5,7 @@ from epdb.models import Compound, User, CompoundStructure
class CompoundTest(TestCase):
fixtures = ["test_fixture.json.gz"]
fixtures = ["test_fixture.cleaned.json"]
def setUp(self):
pass
@ -53,6 +53,14 @@ class CompoundTest(TestCase):
description='No Desc'
)
with self.assertRaises(ValueError):
_ = Compound.create(
self.package,
smiles=' ',
name='Afoxolaner',
description='No Desc'
)
def test_smiles_are_trimmed(self):
c = Compound.create(
self.package,