mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
A massive test update to bring everything inlne with the new Buildable signature.
All tests in index and datamodel now pass. The rolodex fixes all the things. Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
package base
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"gopkg.in/yaml.v3"
|
||||
"testing"
|
||||
@@ -33,8 +34,8 @@ one:
|
||||
var idxNode2 yaml.Node
|
||||
_ = yaml.Unmarshal([]byte(yml2), &idxNode2)
|
||||
|
||||
_ = sr.Build(nil, idxNode.Content[0], nil)
|
||||
_ = sr2.Build(nil, idxNode2.Content[0], nil)
|
||||
_ = sr.Build(context.Background(), nil, idxNode.Content[0], nil)
|
||||
_ = sr2.Build(context.Background(), nil, idxNode2.Content[0], nil)
|
||||
|
||||
assert.Len(t, sr.Requirements.Value, 2)
|
||||
assert.Len(t, sr.GetKeys(), 2)
|
||||
|
||||
Reference in New Issue
Block a user