21 lines
324 B
Go
21 lines
324 B
Go
package neo4j
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"knowledge-graph-backend/config"
|
|
)
|
|
|
|
func TestDoConnect(t *testing.T) {
|
|
cnf, err := config.Load()
|
|
if err != nil {
|
|
t.Errorf("[cnf]: %v", err)
|
|
}
|
|
cfg := config.Neo4jConfig{
|
|
URI: cnf.Neo4j.URI,
|
|
Username: cnf.Neo4j.Username,
|
|
Password: cnf.Neo4j.Password,
|
|
}
|
|
DoConnect(cfg)
|
|
}
|