Skip to content

Commit

Permalink
fixup! HiddenFilePathFilter: Fix hidden sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmehl committed Apr 30, 2024
1 parent 7d21c61 commit f12e841
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions python/GafferTest/HiddenFilePathFilterTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,21 @@ def testSequence( self ) :
p.setFilter( h )

self.assertEqual(
[ str( i ) for i in p.children() ],
[ hiddenSequence.fileNameForFrame( i ) for i in range( 3 ) ] +
[ hiddenSequence.fileName ]
sorted( [ str( i ) for i in p.children() ] ),
sorted(
[ hiddenSequence.fileNameForFrame( i ) for i in range( 3 ) ] +
[ hiddenSequence.fileName ]
)
)

h.setInverted( True )

self.assertEqual(
[ str( i ) for i in p.children() ],
[ visibleSequence.fileNameForFrame( i ) for i in range( 3 ) ] +
[ visibleSequence.fileName ]
sorted( [ str( i ) for i in p.children() ] ),
sorted(
[ visibleSequence.fileNameForFrame( i ) for i in range( 3 ) ] +
[ visibleSequence.fileName ]
)
)


Expand Down

0 comments on commit f12e841

Please sign in to comment.