This commit is contained in:
Shreyas Goenka 2023-01-16 02:30:41 +01:00
parent 4438d1b37c
commit 42d82ede6e
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
2 changed files with 17 additions and 18 deletions

View File

@ -5,7 +5,6 @@ import (
"reflect"
"testing"
"github.com/databricks/bricks/bundle/config"
"github.com/stretchr/testify/assert"
)
@ -339,20 +338,20 @@ func TestEmbeddedStructSchema(t *testing.T) {
assert.Equal(t, expected, string(jsonSchema))
}
// Only for testing bundle, will be removed
func TestBundleSchema(t *testing.T) {
elem := config.Root{}
// // Only for testing bundle, will be removed
// func TestBundleSchema(t *testing.T) {
// elem := config.Root{}
schema, err := NewSchema(reflect.TypeOf(elem))
assert.NoError(t, err)
// schema, err := NewSchema(reflect.TypeOf(elem))
// assert.NoError(t, err)
jsonSchema, err := json.MarshalIndent(schema, " ", " ")
assert.NoError(t, err)
// jsonSchema, err := json.MarshalIndent(schema, " ", " ")
// assert.NoError(t, err)
expected :=
``
// expected :=
// ``
t.Log("[DEBUG] actual: ", string(jsonSchema))
t.Log("[DEBUG] expected: ", expected)
assert.Equal(t, expected, string(jsonSchema))
}
// t.Log("[DEBUG] actual: ", string(jsonSchema))
// t.Log("[DEBUG] expected: ", expected)
// assert.Equal(t, expected, string(jsonSchema))
// }