Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typos #543

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading