File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,16 @@ All notable changes to this project will be documented in this file.
4
4
5
5
## [ Unreleased]
6
6
7
+ ### Added
8
+
7
9
- Delete the output dir before generating tests ([ #7 ] ).
8
10
11
+ ### Changed
12
+
13
+ - Replace os fs separator ("/") in test case names with underscore ("_ ") ([ #8 ] )
14
+
9
15
[ #7 ] : https://github.com/stackabletech/beku.py/pull/7 )
16
+ [ #8 ] : https://github.com/stackabletech/beku.py/pull/8 )
10
17
11
18
## [ 0.0.8] - 2023-07-01
12
19
Original file line number Diff line number Diff line change @@ -106,13 +106,16 @@ class TestCase:
106
106
107
107
@cached_property
108
108
def tid (self ) -> str :
109
- """Return the test id. Used as destination folder name for the generated test case."""
110
- return "_" .join (
109
+ """Return the test id. Used as destination folder name for the generated test case.
110
+ The result is part of a full directory name of the test case. Therefore, the OS filesystem
111
+ directory separator is replaced with underscore.
112
+ """
113
+ return re .sub (f"[{ os .sep } :]" , "_" , "_" .join (
111
114
chain (
112
115
[self .name ],
113
116
[f"{ k } -{ v } " for k , v in self .values .items ()],
114
117
)
115
- )
118
+ ))
116
119
117
120
def expand (self , template_dir : str , target_dir : str ) -> None :
118
121
"""Expand test case This will create the target folder, copy files and render render templates."""
You can’t perform that action at this time.
0 commit comments