From 1b27d7358660027ae7242f0460e319b67d4e2fa8 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sat, 8 Jun 2024 19:55:28 +0200 Subject: [PATCH] fix: typos --- constance/test/pytest.py | 2 +- constance/test/unittest.py | 2 +- tests/test_pytest_overrides.py | 6 +++--- tests/test_test_overrides.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/constance/test/pytest.py b/constance/test/pytest.py index bd878d46..757ce8b3 100644 --- a/constance/test/pytest.py +++ b/constance/test/pytest.py @@ -25,7 +25,7 @@ def pytest_configure(config): # pragma: no cover @pytest.hookimpl(hookwrapper=True) def pytest_runtest_call(item): # pragma: no cover """ - Validate constance override marker params. Run test with overrided config. + Validate constance override marker params. Run test with overridden config. """ marker = item.get_closest_marker("override_config") if marker is not None: diff --git a/constance/test/unittest.py b/constance/test/unittest.py index 91366ae3..f90004a8 100644 --- a/constance/test/unittest.py +++ b/constance/test/unittest.py @@ -67,7 +67,7 @@ def enable(self): for config_key in self.options: self.original_values[config_key] = getattr(config, config_key) - # Update config with the overriden values + # Update config with the overridden values self.unpack_values(self.options) def disable(self): diff --git a/tests/test_pytest_overrides.py b/tests/test_pytest_overrides.py index 43734dc7..7637f5b3 100644 --- a/tests/test_pytest_overrides.py +++ b/tests/test_pytest_overrides.py @@ -41,12 +41,12 @@ class TestPytestOverrideConfigDecorator: """Test that the override_config decorator works on classes.""" def test_override_config_on_class_changes_config_value(self): - """Asser that the class decorator changes config.BOOL_VALUE.""" + """Assert that the class decorator changes config.BOOL_VALUE.""" assert not config.BOOL_VALUE @pytest.mark.override_config(BOOL_VALUE='True') - def test_override_config_on_overrided_value(self): - """Ensure that method mark decorator changes already overrided value for class.""" + def test_override_config_on_overridden_value(self): + """Ensure that method mark decorator changes already overridden value for class.""" assert config.BOOL_VALUE == 'True' diff --git a/tests/test_test_overrides.py b/tests/test_test_overrides.py index 313246d5..ddcc98fa 100644 --- a/tests/test_test_overrides.py +++ b/tests/test_test_overrides.py @@ -30,5 +30,5 @@ def test_override_config_as_context_manager_changes_config_value(self): class OverrideConfigClassDecoratorTestCase(TestCase): """Test that the override_config decorator works on classes.""" def test_override_config_on_class_changes_config_value(self): - """Asser that the class decorator changes config.BOOL_VALUE.""" + """Assert that the class decorator changes config.BOOL_VALUE.""" self.assertFalse(config.BOOL_VALUE)