Chore: Add linter rule to avoid imports from Grafana core in test datasource (#71779)

This commit is contained in:
Andres Martinez Gotor
2023-07-18 15:57:31 +02:00
committed by GitHub
parent 5faf5e48ea
commit 5b2721b4f1
6 changed files with 23 additions and 14 deletions
-5
View File
@@ -8,15 +8,10 @@ import (
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana-plugin-sdk-go/data"
"github.com/grafana/grafana-plugin-sdk-go/experimental"
"github.com/grafana/grafana/pkg/setting"
"github.com/stretchr/testify/require"
)
func TestCSVFileScenario(t *testing.T) {
cfg := setting.NewCfg()
cfg.DataPath = t.TempDir()
cfg.StaticRootPath = "../../../public"
s := &Service{}
t.Run("loadCsvFile", func(t *testing.T) {