Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 6, 2025
1 parent 93472ac commit 8cdf451
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit/spec_tests/test_group_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def test_is_overridden_group(self):
base_spec = GroupSpec('A base group',
data_type_def='BaseType',
groups=[base_group])

# Create extending spec that overrides the group
override_group = GroupSpec('Override group',
name='test_group',
Expand All @@ -419,20 +419,20 @@ def test_is_overridden_group(self):
data_type_inc='BaseType',
data_type_def='ExtType',
groups=[override_group])

# Resolve the extension
ext_spec.resolve_spec(base_spec)

# Test base spec has no overridden groups
self.assertFalse(base_spec.is_overridden_group('test_group'))

# Test extending spec correctly identifies overridden group
self.assertTrue(ext_spec.is_overridden_group('test_group'))

# Test non-existent group raises error
with self.assertRaisesWith(ValueError, "Group 'nonexistent_group' not found in spec"):
ext_spec.is_overridden_group('nonexistent_group')

# Test new group in extending spec is not overridden
new_group = GroupSpec('New group',
name='new_group',
Expand Down

0 comments on commit 8cdf451

Please sign in to comment.