1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00
imgproxy/main_test.go

28 lines
327 B
Go
Raw Normal View History

2018-11-06 13:19:34 +02:00
package main
import (
2019-06-06 15:26:00 +02:00
"os"
"testing"
2018-11-06 13:19:34 +02:00
"github.com/stretchr/testify/suite"
)
type MainTestSuite struct {
suite.Suite
oldConf config
}
2019-06-06 15:26:00 +02:00
func TestMain(m *testing.M) {
initialize()
os.Exit(m.Run())
}
2018-11-06 13:19:34 +02:00
func (s *MainTestSuite) SetupTest() {
s.oldConf = conf
}
func (s *MainTestSuite) TearDownTest() {
conf = s.oldConf
}