(string, string)
| 34 | } |
| 35 | |
| 36 | func (s *IntegrationSuite) BeforeTest(string, string) { |
| 37 | mode.Set(mode.TestDev) |
| 38 | var err error |
| 39 | s.db = testdb.NewDBWithDefaultUser(s.T()) |
| 40 | assert.Nil(s.T(), err) |
| 41 | |
| 42 | g, closable := Create(s.db.GormDatabase, |
| 43 | &model.VersionInfo{Version: "1.0.0", BuildDate: "2018-02-20-17:30:47", Commit: "asdasds"}, |
| 44 | &config.Configuration{PassStrength: 5}, |
| 45 | ) |
| 46 | s.closable = closable |
| 47 | s.server = httptest.NewServer(g) |
| 48 | } |
| 49 | |
| 50 | func (s *IntegrationSuite) AfterTest(string, string) { |
| 51 | s.closable() |
nothing calls this directly
no test coverage detected