Merge pull request #543 from Rotzbua/fix_typo

fix: typos
This commit is contained in:
Alexandr Artemyev 2024-06-09 22:36:37 +05:00 committed by GitHub
commit 38f365d719
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View file

@ -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:

View file

@ -67,7 +67,7 @@ class override_config(override_settings):
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):

View file

@ -41,12 +41,12 @@ try:
"""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'

View file

@ -30,5 +30,5 @@ class OverrideConfigFunctionDecoratorTestCase(TestCase):
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)