Skip to content

Commit

Permalink
Merge pull request #543 from Rotzbua/fix_typo
Browse files Browse the repository at this point in the history
fix: typos
  • Loading branch information
Mogost authored Jun 9, 2024
2 parents cb8ae39 + 1b27d73 commit 38f365d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion constance/test/pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion constance/test/unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 3 additions & 3 deletions tests/test_pytest_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'


Expand Down
2 changes: 1 addition & 1 deletion tests/test_test_overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 38f365d

Please sign in to comment.