Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
buehlere committed Dec 4, 2024
1 parent 12c1ffb commit b4e318f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion file_system/helper/access_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def construct_csv(self):
).all()
fastqs = files.filter(metadata__igoRequestId__in=self.request_ids)
fastq_metadata = [fastq.metadata for fastq in fastqs]
fastq_metadata = sorted(fastq_metadata, key=lambda d: d['cmoSampleName'])
fastq_metadata = sorted(fastq_metadata, key=lambda d: d["cmoSampleName"])
cmoPatientId = set([fastq["cmoPatientId"] for fastq in fastq_metadata])
# get DMP BAM file group
dmp_bams = FileRepository.filter(file_group=settings.DMP_BAM_FILE_GROUP)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class TestAcessManifestOperator(TestCase):
# test db
fixtures = [os.path.join(ROOT_DIR, f) for f in COMMON_FIXTURES]
header_control = "igoRequestId,primaryId,cmoPatientId,cmoSampleName,dmpPatientId,dmpImpactSamples,dmpAccessSamples,baitSet,libraryVolume,investigatorSampleId,preservation,species,libraryConcentrationNgul,tissueLocation,sampleClass,sex,cfDNA2dBarcode,sampleOrigin,tubeId,tumorOrNormal,captureConcentrationNm,oncotreeCode,dnaInputNg,collectionYear,captureInputNg"
id_control = 'C-ALLANT-N001-d01'
id_control = "C-ALLANT-N001-d01"

def test_access_manifest_operator(self):
"""
Test access manifest operator
Expand All @@ -57,6 +58,6 @@ def test_access_manifest_operator(self):
with open(manifest_path, mode="r", newline="", encoding="utf-8") as file:
content = file.read()
header = content.split("\r\n")[0]
id = content.split("\r\n")[1].split(',')[3]
id = content.split("\r\n")[1].split(",")[3]
self.assertEqual(header, self.header_control)
self.assertEqual(id, self.id_control)

0 comments on commit b4e318f

Please sign in to comment.