Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
proccaserra committed Feb 23, 2024
1 parent 9c8f559 commit 62b3e4f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/isajson/test_isajson.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from isatools import isajson
from isatools.model import (
Investigation, Study, Comment, OntologySource, OntologyAnnotation, Person, Publication, Source, Characteristic,
Sample, batch_create_materials, Protocol, ProtocolParameter,ParameterValue, Process, StudyFactor, Assay, Material, DataFile, plink,
Sample, batch_create_materials, Protocol, ProtocolParameter, ParameterValue, Process, StudyFactor, Assay, Material, DataFile, plink,

)
from isatools.tests import utils
Expand Down Expand Up @@ -429,7 +429,7 @@ def test_json_load_and_dump_bii_s_test(self):
investigation_reload = json.loads(json.dumps(investigation, cls=isajson.ISAJSONEncoder))
studies = [s for s in investigation_reload['studies'] if s['filename'] == 's_study.txt'][0]
assays = [a for a in studies['assays'] if a['filename'] == 'a_assay.txt'][0]
self.assertEqual(assays['materials']['otherMaterials'][1 ]["type"], "Extract Name")
self.assertEqual(assays['materials']['otherMaterials'][1]["type"], "Extract Name")

def test_json_load_and_dump_isa_labeled_extract(self):
# Load into ISA objects
Expand Down Expand Up @@ -493,9 +493,10 @@ def test_isajson_char_quant_unit(self):
sample_collection_protocol = Protocol(
name='sample collection',
protocol_type=OntologyAnnotation(term='sample collection'),
parameters=[ProtocolParameter(parameter_name=OntologyAnnotation(term="vessel")),
ProtocolParameter(parameter_name=OntologyAnnotation(term="storage temperature"))
]
parameters=[
ProtocolParameter(parameter_name=OntologyAnnotation(term="vessel")),
ProtocolParameter(parameter_name=OntologyAnnotation(term="storage temperature"))
]
)

study.protocols.append(sample_collection_protocol)
Expand Down

0 comments on commit 62b3e4f

Please sign in to comment.