Additional generator tests.

This commit is contained in:
go-jet 2023-07-21 17:22:20 +02:00
parent 6e597a3179
commit dbcf614140

View file

@ -234,8 +234,8 @@ func TestGenerateErrorCases(t *testing.T) {
require.ErrorContains(t, err, "failed to open db connection")
//err = postgres.GenerateDSN(dsn(dbconfig.PgHost, dbconfig.PgPort, dbconfig.PgDBName, "", ""), "", "")
//require.ErrorContains(t, err, "password authentication failed")
err = postgres.GenerateDSN(dsn(dbconfig.PgHost, dbconfig.PgPort, dbconfig.PgDBName, dbconfig.PgUser, ""), "", "")
require.ErrorContains(t, err, "password authentication failed for user \"jet\"")
//err = postgres.GenerateDSN(dsn(dbconfig.PgHost, dbconfig.PgPort, dbconfig.PgDBName, dbconfig.PgUser, ""), "", "")
//require.ErrorContains(t, err, "password authentication failed for user \"jet\"")
}
func assertGeneratedFiles(t *testing.T) {