#NEWLINE# def test_postgres_dependencies( ) : #NEWLINE# #INDENT# pg_settings = { #NEWLINE# #INDENT# 'user' : None , #NEWLINE# 'database' : 'db' , #NEWLINE# 'password' : 'pw' , #NEWLINE# #UNINDENT# } #NEWLINE# with pytest . raises ( ValueError ) : #NEWLINE# #INDENT# pg . deploy ( pg_settings ) #NEWLINE# #UNINDENT# pg_settings = { #NEWLINE# #INDENT# 'user' : 'user' , #NEWLINE# 'database' : 'db' , #NEWLINE# 'password' : 'pw' , #NEWLINE# #UNINDENT# } #NEWLINE# commands = pg . deploy ( pg_settings ) #NEWLINE# assert ( Package ( 'postgresql' ) in commands )