mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
28 lines
327 B
Go
28 lines
327 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
)
|
|
|
|
type MainTestSuite struct {
|
|
suite.Suite
|
|
|
|
oldConf config
|
|
}
|
|
|
|
func TestMain(m *testing.M) {
|
|
initialize()
|
|
os.Exit(m.Run())
|
|
}
|
|
|
|
func (s *MainTestSuite) SetupTest() {
|
|
s.oldConf = conf
|
|
}
|
|
|
|
func (s *MainTestSuite) TearDownTest() {
|
|
conf = s.oldConf
|
|
}
|