#NEWLINE# @ pytest . mark . parametrize ( ( 'args' , 'ekwargs' ) , [ ( [ ] , { #NEWLINE# #INDENT# 'resolve_dependencies' : False , #NEWLINE# #UNINDENT# } ) , ( [ '-r' ] , { #NEWLINE# #INDENT# 'resolve_dependencies' : True , #NEWLINE# #UNINDENT# } ) , ( [ '--resolve-dependencies' ] , { #NEWLINE# #INDENT# 'resolve_dependencies' : True , #NEWLINE# #UNINDENT# } ) ] ) #NEWLINE# def test_heads_command( monkeypatch , cli , pyramid_config , args , ekwargs ) : #NEWLINE# #INDENT# alembic_heads = pretend . call_recorder ( ( lambda config , resolve_dependencies : None ) ) #NEWLINE# monkeypatch . setattr ( alembic . command , 'heads' , alembic_heads ) #NEWLINE# alembic_config = pretend . stub ( ) #NEWLINE# pyramid_config . alembic_config = ( lambda : alembic_config ) #NEWLINE# result = cli . invoke ( heads , args , obj = pyramid_config ) #NEWLINE# assert ( result . exit_code == 0 ) #NEWLINE# assert ( alembic_heads . calls == [ pretend . call ( alembic_config , ** ekwargs ) ] )