mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-29 04:59:28 +02:00
enable linter testifylint on v7 (#4572)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4572 Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
This commit is contained in:
parent
c47bdf436b
commit
072dd9f8bc
494 changed files with 4897 additions and 4554 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