(m *testing.M)
| 26 | } |
| 27 | |
| 28 | func TestMain(m *testing.M) { |
| 29 | config.Init("../config/config.test.json") |
| 30 | model.Init() |
| 31 | Init() |
| 32 | |
| 33 | twitter.Init() |
| 34 | keybase.Init() |
| 35 | ethereum.Init() |
| 36 | github.Init() |
| 37 | discord.Init() |
| 38 | |
| 39 | before_each(nil) |
| 40 | |
| 41 | os.Exit(m.Run()) |
| 42 | } |
| 43 | |
| 44 | func APITestCall(engine *gin.Engine, method, url string, body any, response any) *httptest.ResponseRecorder { |
| 45 | body_bytes, _ := json.Marshal(body) |