mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-11 04:05:10 +02:00
enable linter testifylint on v8 (#4573)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4573 Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
This commit is contained in:
parent
4d2263e82e
commit
ce563ade3d
503 changed files with 5014 additions and 4665 deletions
|
@ -9,14 +9,15 @@ import (
|
|||
|
||||
"github.com/santhosh-tekuri/jsonschema/v5"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestMigrationJSON_IssueOK(t *testing.T) {
|
||||
issues := make([]*Issue, 0, 10)
|
||||
err := Load("file_format_testdata/issue_a.json", &issues, true)
|
||||
assert.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
err = Load("file_format_testdata/issue_a.yml", &issues, true)
|
||||
assert.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
func TestMigrationJSON_IssueFail(t *testing.T) {
|
||||
|
@ -34,5 +35,5 @@ func TestMigrationJSON_IssueFail(t *testing.T) {
|
|||
func TestMigrationJSON_MilestoneOK(t *testing.T) {
|
||||
milestones := make([]*Milestone, 0, 10)
|
||||
err := Load("file_format_testdata/milestones.json", &milestones, true)
|
||||
assert.NoError(t, err)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue