MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testRefresh

Method testRefresh

test/IECore/ClassLoader.py:71–82  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

69 self.assertTrue( isinstance( l, IECore.ClassLoader ) )
70
71 def testRefresh( self ) :
72
73 l = IECore.ClassLoader( IECore.SearchPath( os.path.join( "test", "IECore", "ops" ) ) )
74
75 c = l.classNames()
76 self.assertEqual( l.getDefaultVersion( os.path.join( "maths", "multiply" ) ), 2 )
77 l.setDefaultVersion( os.path.join( "maths", "multiply" ), 1 )
78 self.assertEqual( l.getDefaultVersion( os.path.join( "maths", "multiply" ) ), 1 )
79
80 l.refresh()
81 self.assertEqual( c, l.classNames() )
82 self.assertEqual( l.getDefaultVersion( os.path.join( "maths", "multiply" ) ), 1 )
83
84 def testDotsInPath( self ) :
85

Callers

nothing calls this directly

Calls 6

classNamesMethod · 0.95
getDefaultVersionMethod · 0.95
setDefaultVersionMethod · 0.95
refreshMethod · 0.95
SearchPathMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected