Skip to content

Commit da7544f

Browse files
committed
Fixed issue with formatting.
There is an underlying edge case where the deriving previous environment variables with multple ways of formatting version numbers will fail.
1 parent f236b7d commit da7544f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/test_files.py

-10
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ def test_multi_file_configuration(tmp_path: Path):
8989
readme_path.write_text("MyAwesomeSoftware(TM) v1.0")
9090
build_num_path = tmp_path / "BUILD_NUMBER"
9191
build_num_path.write_text("1.0.3+joe+38943")
92-
csv_path = tmp_path / "Version.csv"
93-
csv_path.write_text("1;1;0;3;joe;38943")
9492

9593
overrides = {
9694
"current_version": "1.0.3+joe+38943",
@@ -117,13 +115,6 @@ def test_multi_file_configuration(tmp_path: Path):
117115
"filename": str(build_num_path),
118116
"serialize": ["{major}.{minor}.{patch}+{$USER}+{$BUILD_NUMBER}"],
119117
},
120-
{
121-
"filename": str(csv_path),
122-
"parse": r"(?P<major>\d+);(?P<minor>\d+);(?P<patch>\d+);(?P<user>[0-9A-Za-z]+)?;(?P<build_number>[0-9A-Za-z]+)?",
123-
"serialize": ["{major};{minor};{patch};{$USER};{$BUILD_NUMBER}"],
124-
"search": "1;{current_version}",
125-
"replace": "1;{new_version}",
126-
},
127118
],
128119
}
129120
conf, version_config, current_version = get_config_data(overrides)
@@ -160,7 +151,6 @@ def test_multi_file_configuration(tmp_path: Path):
160151
assert maj_vers_path.read_text() == "2"
161152
assert readme_path.read_text() == "MyAwesomeSoftware(TM) v2.0"
162153
assert build_num_path.read_text() == "2.0.1+jane+38945"
163-
assert csv_path.read_text() == "1;2;0;1;jane;38945"
164154

165155

166156
def test_issue_14(tmp_path: Path):

0 commit comments

Comments
 (0)