File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 0.12.3] - 2025-11-06
9+
10+ ### Fixed
11+
12+ - Fix ` output_pytest_directories ` option for v2 manifests
13+
814## [ 0.12.2] - 2025-07-21
915
1016### Fixed
Original file line number Diff line number Diff line change @@ -256,15 +256,15 @@ def main() -> None: # pragma: no cover
256256 sys .exit (2 )
257257 test_config = repo_manifest .pytests [0 ]
258258 if isinstance (test_config , TestsConfig ):
259+ # Legacy format, only one possible directory to return so we return it
259260 display_content ["tests" ]["pytest_directory" ] = str (test_config .pytest_directory )
260261 elif isinstance (test_config , PyTestsConfig ):
262+ # If we have several pytests, we look for the [standalone] one
261263 for cfg in repo_manifest .pytests :
262264 assert isinstance (cfg , PyTestsConfig )
263- if "standalone" in str (cfg .directory ):
265+ if cfg .key == "standalone" :
266+ display_content ["tests" ]["pytest_directory" ] = str (cfg .directory )
264267 break
265- assert isinstance (cfg , PyTestsConfig )
266- if "standalone" in str (cfg .directory ):
267- display_content ["tests" ]["pytest_directory" ] = str (cfg .directory )
268268 else :
269269 logger .error (
270270 "This manifest contains a [pytests] field, but no [tests] field. "
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ test_with_feature_activated = "TEST_FLAG_TO_SET=1"
1212directory = " ./unit-tests/"
1313
1414[pytest .standalone ]
15- directory = " tests/standalone "
15+ directory = " tests/path_to_st_tests "
1616
1717[pytest .swap ]
1818directory = " tests/swap"
@@ -25,4 +25,4 @@ testing_with_latest = [
2525testing_with_prod = [
2626 {url = " https://github.com/LedgerHQ/app-exchange" , ref = " master" },
2727 {url = " https://github.com/LedgerHQ/app-ethereum" , ref = " master" }
28- ]
28+ ]
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def test_get_app(gh):
2020
2121def test_exchange_manifest (exchange ):
2222 assert exchange .manifest .app .sdk == "c"
23- assert len (exchange .manifest .app .devices ) == 4
23+ assert len (exchange .manifest .app .devices ) == 5
2424
2525
2626def test_exchange_makefile_path (exchange ):
You can’t perform that action at this time.
0 commit comments