Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/router/template_test.go

22 lignes
412 B
Go

package router
import (
"path"
"testing"
"github.com/NyaaPantsu/nyaa/config"
)
// run before router/init.go:init()
var _ = func() (_ struct{}) {
TemplateDir = path.Join("..", TemplateDir)
config.ConfigPath = path.Join("..", config.ConfigPath)
config.DefaultConfigPath = path.Join("..", config.DefaultConfigPath)
config.Parse()
return
}()
func TestReloadTemplates(t *testing.T) {
ReloadTemplates()
}