Coverage for functions \ flipdare \ wrapper \ backend \ app_stat_metric_wrapper.py: 92%

13 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2026-05-08 12:22 +1000

1#!/usr/bin/env python 

2# Copyright (c) 2026 Flipdare Pty Ltd. All rights reserved. 

3# 

4# This file is part of Flipdare's proprietary software and contains 

5# confidential and copyrighted material. Unauthorised copying, 

6# modification, distribution, or use of this file is strictly 

7# prohibited without prior written permission from Flipdare Pty Ltd. 

8# 

9# This software includes third-party components licensed under MIT, 

10# BSD, and Apache 2.0 licences. See THIRD_PARTY_NOTICES for details. 

11# 

12 

13from __future__ import annotations 

14 

15from flipdare.app_types import StatMetric 

16from flipdare.generated.model.backend.app_stat_metric_model import AppStatMetricModel 

17from flipdare.generated.shared.backend.app_job_type import AppJobType 

18from flipdare.wrapper._persisted_wrapper import PersistedWrapper 

19 

20 

21class AppStatMetricWrapper(PersistedWrapper[AppStatMetricModel]): 

22 MODEL_CLASS = AppStatMetricModel 

23 

24 @property 

25 def job_type(self) -> AppJobType: 

26 return self.model.job_type 

27 

28 @property 

29 def metric(self) -> StatMetric: 

30 return self.model.metric