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

SwissDataScienceCenter / renku-data-services / 11288123511

11 Oct 2024 07:23AM UTC coverage: 90.667% (+0.2%) from 90.477%
11288123511

Pull #407

github

web-flow
Merge 20c6c8af6 into 5b095d795
Pull Request #407: feat!: add data connectors

1226 of 1325 new or added lines in 28 files covered. (92.53%)

3 existing lines in 3 files now uncovered.

10589 of 11679 relevant lines covered (90.67%)

1.6 hits per line

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

93.75
/components/renku_data_services/storage/apispec_base.py
1
"""Base models for API specifications."""
2✔
2

3
from pydantic import BaseModel, field_validator
2✔
4
from ulid import ULID
2✔
5

6

7
class BaseAPISpec(BaseModel):
2✔
8
    """Base API specification."""
2✔
9

10
    class Config:
2✔
11
        """Enables orm mode for pydantic."""
2✔
12

13
        from_attributes = True
2✔
14

15
    @field_validator("storage_id", mode="before", check_fields=False)
2✔
16
    @classmethod
2✔
17
    def serialize_storage_id(cls, storage_id: str | ULID) -> str:
2✔
18
        """Custom serializer that can handle ULIDs."""
19
        return str(storage_id)
1✔
20

21
    @field_validator("secret_id", mode="before", check_fields=False)
2✔
22
    @classmethod
2✔
23
    def secret_storage_id(cls, secret_id: str | ULID) -> str:
2✔
24
        """Custom serializer that can handle ULIDs."""
UNCOV
25
        return str(secret_id)
×
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