pytest-embedded-espemu 2.9.0__tar.gz → 2.9.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-embedded-espemu
3
- Version: 2.9.0
3
+ Version: 2.9.2
4
4
  Summary: Make pytest-embedded plugin work with esp-emu.
5
5
  Author: Espressif Systems
6
6
  Requires-Python: >=3.10
@@ -20,8 +20,8 @@ Classifier: Programming Language :: Python :: 3.14
20
20
  Classifier: Programming Language :: Python
21
21
  Classifier: Topic :: Software Development :: Testing
22
22
  License-File: LICENSE
23
- Requires-Dist: pytest-embedded~=2.9.0
24
- Requires-Dist: pytest-embedded-idf~=2.9.0 ; extra == "idf"
23
+ Requires-Dist: pytest-embedded~=2.9.2
24
+ Requires-Dist: pytest-embedded-idf~=2.9.2 ; extra == "idf"
25
25
  Project-URL: changelog, https://github.com/espressif/pytest-embedded/blob/main/CHANGELOG.md
26
26
  Project-URL: documentation, https://docs.espressif.com/projects/pytest-embedded/en/latest/
27
27
  Project-URL: homepage, https://github.com/espressif/pytest-embedded
@@ -29,12 +29,12 @@ dynamic = ["version", "description"]
29
29
  requires-python = ">=3.10"
30
30
 
31
31
  dependencies = [
32
- "pytest-embedded~=2.9.0",
32
+ "pytest-embedded~=2.9.2",
33
33
  ]
34
34
 
35
35
  [project.optional-dependencies]
36
36
  idf = [
37
- "pytest-embedded-idf~=2.9.0",
37
+ "pytest-embedded-idf~=2.9.2",
38
38
  ]
39
39
 
40
40
  [project.urls]
@@ -28,4 +28,4 @@ __all__ = [
28
28
  'EspEmuDut',
29
29
  ]
30
30
 
31
- __version__ = '2.9.0'
31
+ __version__ = '2.9.2'
@@ -8,6 +8,9 @@ from .espemu import EspEmu
8
8
  class EspEmuDut(Dut):
9
9
  """
10
10
  esp-emu dut class
11
+
12
+ Attributes:
13
+ target (str): target chip type, taken from the app
11
14
  """
12
15
 
13
16
  def __init__(
@@ -19,6 +22,11 @@ class EspEmuDut(Dut):
19
22
 
20
23
  super().__init__(**kwargs)
21
24
 
25
+ # `IdfDut` exposes this for serial runs, and test fixtures use it to
26
+ # select target specific behavior. `EspEmuApp` is an `IdfApp`, so the
27
+ # target is known here as well; keep it optional for other app classes.
28
+ self.target: str | None = getattr(self.app, 'target', None)
29
+
22
30
  self._hard_reset_func = self.espemu._hard_reset
23
31
 
24
32
  def write(self, s: AnyStr) -> None: