• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Clinical-Genomics / trailblazer / 10061352275

23 Jul 2024 02:59PM UTC coverage: 89.246%. First build
10061352275

Pull #462

github

seallard
Fix temp error
Pull Request #462: Add user signatures

7 of 7 new or added lines in 4 files covered. (100.0%)

2141 of 2399 relevant lines covered (89.25%)

0.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/trailblazer/services/slurm/slurm_api_service/slurm_api_service.py
1
from trailblazer.clients.slurm_api_client.dto.job_response import SlurmJobResponse
1✔
2
from trailblazer.clients.slurm_api_client.slurm_api_client import SlurmAPIClient
1✔
3
from trailblazer.services.slurm.dtos import SlurmJobInfo
1✔
4
from trailblazer.services.slurm.slurm_api_service.utils import create_job_info_dto
1✔
5
from trailblazer.services.slurm.slurm_service import SlurmService
1✔
6

7

8
class SlurmAPIService(SlurmService):
1✔
9
    def __init__(self, client: SlurmAPIClient):
1✔
10
        self.client = client
×
11

12
    def get_job(self, job_id: int) -> SlurmJobInfo:
1✔
13
        job_response: SlurmJobResponse = self.client.get_job(job_id)
×
14
        return create_job_info_dto(job_response)
×
15

16
    def get_jobs(self, job_ids: list[int]) -> list[SlurmJobInfo]:
1✔
17
        jobs: list[SlurmJobInfo] = []
×
18
        for job_id in job_ids:
×
19
            job: SlurmJobInfo | None = self.get_job(job_id)
×
20
            if job:
×
21
                jobs.append(job)
×
22
        return jobs
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc