Skip to content

Commit 0aa9362

Browse files
committed
test: fix test case changes due to tomlkit upgrade
1 parent 6b8ac42 commit 0aa9362

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/commands/test_init_command.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def ask(self):
2525
}
2626

2727
expected_config = (
28-
"[tool]\n"
2928
"[tool.commitizen]\n"
3029
'name = "cz_conventional_commits"\n'
3130
'version = "0.0.1"\n'

tests/test_conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_init_empty_config_content(self, tmpdir):
138138
toml_config.init_empty_config_content()
139139

140140
with open(path, "r") as toml_file:
141-
assert toml_file.read() == "[tool]\n[tool.commitizen]\n"
141+
assert toml_file.read() == "[tool.commitizen]\n"
142142

143143
def test_init_empty_config_content_with_existing_content(self, tmpdir):
144144
existing_content = "[tool.black]\n" "line-length = 88\n"

0 commit comments

Comments
 (0)