Commit 39846722 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

fix style on latest modifications

parent 2a8ed5af
Pipeline #17829 passed with stages
in 12 minutes and 47 seconds
......@@ -286,7 +286,9 @@ class Protein(AutoFillableModel):
return len(self.entry_name) > 0
def __str__(self):
return "{} ({})".format(self.uniprot_id, self.recommended_name_long or self.short_name)
return "{} ({})".format(
self.uniprot_id, self.recommended_name_long or self.short_name
)
class Domain(AutoFillableModel):
......
......@@ -466,13 +466,11 @@ class TestProtein(TestCase):
# this test ensures that we can save a protein with no gene name
# in the DB
p = Protein()
p.uniprot_id= 'P00784'
p.uniprot_id = "P00784"
try:
p.save()
except Exception as exc:
self.fail("exception {exc} raised while saving protein P00784")
self.fail(f"exception {exc} raised while saving protein P00784")
class TestGetPubMEDIdInfo(TestCase):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment