Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Ly <[email protected]>
  • Loading branch information
stephprince and rly authored Nov 11, 2024
1 parent e3a3694 commit 164e419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ def test_slash_restriction(self):
self.assertRaises(ValueError, Container, 'bad/name')

# check no error raised in construct mode
child_obj = Container.__new__(Container, parent=None, object_id=None, in_construct_mode=True)
child_obj = Container.__new__(Container, in_construct_mode=True)
child_obj.__init__('bad/name')

def test_colon_restriction(self):
self.assertRaises(ValueError, Container, 'bad:name')

# check no error raised in construct mode
child_obj = Container.__new__(Container, parent=None, object_id=None, in_construct_mode=True)
child_obj = Container.__new__(Container, in_construct_mode=True)
child_obj.__init__('bad:name')

def test_set_modified_parent(self):
Expand Down

0 comments on commit 164e419

Please sign in to comment.