hardpy 0.15.0__py3-none-any.whl → 0.15.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,6 @@ from __future__ import annotations
4
4
 
5
5
  from abc import ABC
6
6
  from collections.abc import Mapping # noqa: TC003
7
- from datetime import datetime # noqa: TC003
8
7
  from typing import ClassVar
9
8
 
10
9
  from pydantic import BaseModel, ConfigDict, Field
@@ -79,7 +78,7 @@ class Dut(BaseModel):
79
78
  part_number: str | None = None
80
79
  revision: str | None = None
81
80
  sub_units: list[SubUnit] = []
82
- info: Mapping[str, str | int | float | datetime] = {}
81
+ info: Mapping[str, str | int | float] = {}
83
82
 
84
83
 
85
84
  class SubUnit(BaseModel):
@@ -92,7 +91,7 @@ class SubUnit(BaseModel):
92
91
  serial_number: str | None = None
93
92
  part_number: str | None = None
94
93
  revision: str | None = None
95
- info: Mapping[str, str | int | float | datetime] = {}
94
+ info: Mapping[str, str | int | float] = {}
96
95
 
97
96
 
98
97
  class Instrument(BaseModel):
@@ -104,7 +103,7 @@ class Instrument(BaseModel):
104
103
  revision: str | None = None
105
104
  number: int | None = None
106
105
  comment: str | None = None
107
- info: Mapping[str, str | int | float | datetime] = {}
106
+ info: Mapping[str, str | int | float] = {}
108
107
 
109
108
 
110
109
  class TestStand(BaseModel):
@@ -120,7 +119,7 @@ class TestStand(BaseModel):
120
119
  number: int | None = None
121
120
  drivers: dict = {} # deprecated, remove in v2
122
121
  instruments: list[Instrument] = []
123
- info: Mapping[str, str | int | float | datetime] = {}
122
+ info: Mapping[str, str | int | float] = {}
124
123
 
125
124
 
126
125
  class Process(BaseModel):
@@ -130,7 +129,7 @@ class Process(BaseModel):
130
129
 
131
130
  name: str | None = None
132
131
  number: int | None = None
133
- info: Mapping[str, str | int | float | datetime] = {}
132
+ info: Mapping[str, str | int | float] = {}
134
133
 
135
134
 
136
135
  class IBaseMeasurement(BaseModel, ABC):
@@ -33,7 +33,6 @@ from hardpy.pytest_hardpy.utils import (
33
33
 
34
34
  if TYPE_CHECKING:
35
35
  from collections.abc import Mapping
36
- from datetime import datetime
37
36
 
38
37
 
39
38
  @dataclass
@@ -154,7 +153,7 @@ def set_dut_sub_unit(sub_unit: SubUnit) -> int:
154
153
  return len(sub_units) - 1
155
154
 
156
155
 
157
- def set_dut_info(info: Mapping[str, str | int | float | datetime]) -> None:
156
+ def set_dut_info(info: Mapping[str, str | int | float]) -> None:
158
157
  """Set DUT info to document.
159
158
 
160
159
  Args:
@@ -278,13 +277,13 @@ def set_stand_name(name: str) -> None:
278
277
  reporter.update_db_by_doc()
279
278
 
280
279
 
281
- def set_stand_info(info: Mapping[str, str | int | float | datetime]) -> None:
280
+ def set_stand_info(info: Mapping[str, str | int | float]) -> None:
282
281
  """Add test stand info to document.
283
282
 
284
283
  Args:
285
- info (Mapping[str, str | int | float | datetime]): test stand info as a mapping
286
- where keys are strings and values can be strings, integers, floats or datetime objects
287
- """ # noqa: E501
284
+ info (Mapping[str, str | int | float ]): test stand info as a mapping
285
+ where keys are strings and values can be strings, integers, floats objects
286
+ """
288
287
  reporter = RunnerReporter()
289
288
  for stand_key, stand_value in info.items():
290
289
  key = reporter.generate_key(DF.TEST_STAND, DF.INFO, stand_key)
@@ -524,7 +523,7 @@ def set_process_number(number: int) -> None:
524
523
  reporter.update_db_by_doc()
525
524
 
526
525
 
527
- def set_process_info(info: Mapping[str, str | int | float | datetime]) -> None:
526
+ def set_process_info(info: Mapping[str, str | int | float]) -> None:
528
527
  """Set process info to document.
529
528
 
530
529
  Args:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hardpy
3
- Version: 0.15.0
3
+ Version: 0.15.1
4
4
  Summary: HardPy library for device testing
5
5
  Project-URL: Homepage, https://github.com/everypinio/hardpy/
6
6
  Project-URL: Documentation, https://everypinio.github.io/hardpy/
@@ -46,7 +46,7 @@ hardpy/hardpy_panel/frontend/dist/locales/ru/translation.json,sha256=Zo_5GhOFIwO
46
46
  hardpy/hardpy_panel/frontend/dist/locales/zh/translation.json,sha256=uxYSv8eXTMDewPvbFZSh21ZP0Wy4mx32XbbVkzXzlls,1790
47
47
  hardpy/pytest_hardpy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
48
  hardpy/pytest_hardpy/plugin.py,sha256=2B-jNRfuY30m6i0TPjeVetR9_oGs15bnYXd_gQ2hSDI,21102
49
- hardpy/pytest_hardpy/pytest_call.py,sha256=QDpzQ2AxeSM9Qaz3TN6n0Tydr0zzOU6osIAr4-0F9ZU,21606
49
+ hardpy/pytest_hardpy/pytest_call.py,sha256=v5ACrfxlFA9JOfwPiv2ELhiuoggE_tAgNZkuBKQzBwo,21503
50
50
  hardpy/pytest_hardpy/pytest_wrapper.py,sha256=0tG725R3qhLI6t6zi0-OL17FCwt3YI-mwrBjWe4U9A4,4694
51
51
  hardpy/pytest_hardpy/db/__init__.py,sha256=G6y13JPh8HaH2O9E3_LTH_bTUVSgiezQFjDGaNIljec,557
52
52
  hardpy/pytest_hardpy/db/base_connector.py,sha256=5a476F5LwvFUfQ4Yc0Q6biacULDrCk8UHPlpc6n0NRQ,1111
@@ -56,7 +56,7 @@ hardpy/pytest_hardpy/db/const.py,sha256=E_A0IKGeS3qyPX4fTfUE5ksARsrTKSVWqUkdmh8S
56
56
  hardpy/pytest_hardpy/db/runstore.py,sha256=tCXWo2AW0er3lbDcCqYbYxOBbINMZNtfnnjlIJpXmIA,949
57
57
  hardpy/pytest_hardpy/db/statestore.py,sha256=0sv4AqzwW_J34O-cb7aN3zmgULIVtZRi_qg4XvC2_L0,586
58
58
  hardpy/pytest_hardpy/db/schema/__init__.py,sha256=1S73W3PLQt8gX5Y33nbX1JdwLvnrtlKH4cElID3pwuc,263
59
- hardpy/pytest_hardpy/db/schema/v1.py,sha256=9_Kv5N-kFKNntNdy5POcPr6_hj1pVGM4vPqGcV-g7Xg,6338
59
+ hardpy/pytest_hardpy/db/schema/v1.py,sha256=L-x3xunLtP3FnBRdduSP5SpqaNARwwbp1ICXy58VdcA,6238
60
60
  hardpy/pytest_hardpy/reporter/__init__.py,sha256=rztpM2HlLUpMOvad0JHbZU4Mk8PDDQyCFXLhpLktGQI,322
61
61
  hardpy/pytest_hardpy/reporter/base.py,sha256=KRkc5a7yk9ZsQ92gnBdHhJEXSSQiTWbEMSMzRMpJDFY,2915
62
62
  hardpy/pytest_hardpy/reporter/hook_reporter.py,sha256=vkN78UtXs5M-rmpDdxjFEwrAPOFIpSEU8TRZUdnuWJY,14619
@@ -79,8 +79,8 @@ hardpy/pytest_hardpy/utils/node_info.py,sha256=DaW566WvsyWR66CThuZ38UoHwQa-pu-4W
79
79
  hardpy/pytest_hardpy/utils/progress_calculator.py,sha256=TPl2gG0ZSvMe8otPythhF9hkD6fa6-mJAhy9yI83-yE,1071
80
80
  hardpy/pytest_hardpy/utils/singleton.py,sha256=tjUGs48o_vBeVpRsEBZEOTCoCUikpIFmQ1c3rsfymso,948
81
81
  hardpy/pytest_hardpy/utils/stand_type.py,sha256=p3AFtgMt-sn8QXRp60YM-xo2mEjZHUhYr_Mxhz1WyP0,7438
82
- hardpy-0.15.0.dist-info/METADATA,sha256=_aaXwF48EZNFd0AqlYaTln3de2T5wRtCA6ukWtaUYOY,4058
83
- hardpy-0.15.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
84
- hardpy-0.15.0.dist-info/entry_points.txt,sha256=nL2sMkKMScNaOE0IPkYnu9Yr-BUswZvGSrwY-SxHY3E,102
85
- hardpy-0.15.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
86
- hardpy-0.15.0.dist-info/RECORD,,
82
+ hardpy-0.15.1.dist-info/METADATA,sha256=d22v4-7WgRCOwz7YDfQcl-F7DHA0KsmtOM0E81x77AA,4058
83
+ hardpy-0.15.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
84
+ hardpy-0.15.1.dist-info/entry_points.txt,sha256=nL2sMkKMScNaOE0IPkYnu9Yr-BUswZvGSrwY-SxHY3E,102
85
+ hardpy-0.15.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
86
+ hardpy-0.15.1.dist-info/RECORD,,