deprecate timezones.json (#10311)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5b24c44e19
Коммит
72448d12a9
@@ -4,8 +4,6 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
@@ -21,11 +19,6 @@ func TestConfigFlag(t *testing.T) {
|
||||
defer th.TearDown()
|
||||
dir := th.TemporaryDirectory()
|
||||
|
||||
timezones := th.App.Timezones.GetSupported()
|
||||
tzConfigPath := filepath.Join(dir, "timezones.json")
|
||||
timezoneData, _ := json.Marshal(timezones)
|
||||
require.NoError(t, ioutil.WriteFile(tzConfigPath, timezoneData, 0600))
|
||||
|
||||
i18n, ok := fileutils.FindDir("i18n")
|
||||
require.True(t, ok)
|
||||
require.NoError(t, utils.CopyDir(i18n, filepath.Join(dir, "i18n")))
|
||||
|
||||
Ссылка в новой задаче
Block a user