diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-01-26 17:17:38 -0600 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-01-26 17:17:38 -0600 |
| commit | 39cc3d5a0a717199783c292373e181e410608344 (patch) | |
| tree | fa05b16c5e3de70d01695837b96545c8ae527315 /tests | |
| parent | Merge branch 'master' of github.com:eugenetriguba/config_file (diff) | |
| download | config-file-39cc3d5a0a717199783c292373e181e410608344.zip | |
Rename reset() to restore_original()
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_config_file.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_config_file.py b/tests/test_config_file.py index 1daba6f..3d2a5d2 100644 --- a/tests/test_config_file.py +++ b/tests/test_config_file.py @@ -22,7 +22,7 @@ def test_that_config_file_initializes_correctly(tmp_path, file_contents, file_na "file_contents, file_name, original_file_name", [("[calendar]\nsunday_index = 0\n\n", "config.ini", "config.original.ini")], ) -def test_that_config_file_can_reset( +def test_that_config_file_can_restore_the_original( tmpdir, file_contents, file_name, original_file_name ): config_path = tmpdir / file_name @@ -33,7 +33,7 @@ def test_that_config_file_can_reset( config = ConfigFile(str(config_path)) config.set("calendar.sunday_index", 0) - config.reset() + config.restore_original() assert config.stringify() == ConfigFile(str(original_config_path)).stringify() assert config_path.read_text(encoding="utf-8") == original_config_path.read_text( encoding="utf-8" |