mirror of
https://github.com/jazzband/django-constance.git
synced 2026-05-01 12:14:53 +00:00
fix: typos
This commit is contained in:
parent
cb8ae39854
commit
1b27d73586
4 changed files with 6 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue