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

lisa-sgs / commandfile / 16933601741

13 Aug 2025 09:43AM UTC coverage: 98.864% (-1.1%) from 100.0%
16933601741

push

github

teobouvard
Wrap raw model to add helper methods

29 of 31 new or added lines in 3 files covered. (93.55%)

174 of 176 relevant lines covered (98.86%)

0.99 hits per line

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

80.0
/src/commandfile/model.py
1
from commandfile.model_generated import (
1✔
2
    Commandfile as BaseCommandfile,
3
)
4
from commandfile.model_generated import (
1✔
5
    Filelist,
6
    Parameter,
7
)
8

9

10
class Commandfile(BaseCommandfile):
1✔
11
    """Extended Commandfile model with helper methods."""
12

13
    def find_parameter(self, key: str) -> Parameter:
1✔
14
        """Find a parameter by its key."""
15
        for param in self.parameters:
1✔
16
            if param.key == key:
1✔
17
                return param
1✔
NEW
18
        raise KeyError(f"Parameter {key!r} not found")
×
19

20
    def find_filelist(self, key: str) -> Filelist:
1✔
NEW
21
        raise NotImplementedError()
×
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

© 2026 Coveralls, Inc