forked from loafle/openapi-generator-original
formatted code
This commit is contained in:
parent
33491a7a8f
commit
b16439e17b
@ -2,8 +2,9 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
sw "./swagger"
|
sw "./swagger"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAddPet(t *testing.T) {
|
func TestAddPet(t *testing.T) {
|
||||||
@ -21,7 +22,7 @@ func TestAddPet(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGetPetById(t *testing.T) {
|
func TestGetPetById(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
t.Log("Testing TestGetPetById...")
|
t.Log("Testing TestGetPetById...")
|
||||||
|
|
||||||
s := sw.NewPetApi()
|
s := sw.NewPetApi()
|
||||||
@ -34,7 +35,7 @@ func TestGetPetById(t *testing.T) {
|
|||||||
assert.Equal(resp.Name, "gopher", "Pet name should be gopher")
|
assert.Equal(resp.Name, "gopher", "Pet name should be gopher")
|
||||||
assert.Equal(resp.Status, "pending", "Pet status should be pending")
|
assert.Equal(resp.Status, "pending", "Pet status should be pending")
|
||||||
|
|
||||||
t.Log(resp)
|
t.Log(resp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user