Skip to content

Commit e75f034

Browse files
test: assert config migration results (#10884)
1 parent 409c83c commit e75f034

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/config/test_config_source.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_config_source_migration_rename_key() -> None:
2323

2424
migration.apply(config_source)
2525

26-
config_source._config = {
26+
assert config_source._config == {
2727
"virtualenvs": {
2828
"use-poetry-python": True,
2929
},
@@ -49,7 +49,7 @@ def test_config_source_migration_remove_key() -> None:
4949

5050
migration.apply(config_source)
5151

52-
config_source._config = {
52+
assert config_source._config == {
5353
"virtualenvs": {},
5454
"system-git-client": True,
5555
}
@@ -74,7 +74,7 @@ def test_config_source_migration_unset_value() -> None:
7474

7575
migration.apply(config_source)
7676

77-
config_source._config = {
77+
assert config_source._config == {
7878
"virtualenvs": {},
7979
"system-git-client": True,
8080
}
@@ -99,7 +99,7 @@ def test_config_source_migration_complex_migration() -> None:
9999

100100
migration.apply(config_source)
101101

102-
config_source._config = {
102+
assert config_source._config == {
103103
"virtualenvs": {
104104
"use-poetry-python": None,
105105
},

0 commit comments

Comments
 (0)