Skip to content

Commit

Permalink
tests - fix using plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
commonism committed Dec 26, 2022
1 parent 36e50a3 commit 9c9d401
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/parsing_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,14 @@ def test_schema_allof_discriminator(with_schema_allof_discriminator):

def test_schema_enum(openapi_version, with_schema_enum):
import copy
import json

data = copy.deepcopy(with_schema_enum) # .deepcopy()

import linode_test

data["openapi"] = str(openapi_version)
api = OpenAPI(URLBASE, data, plugins=[linode_test.LinodeDiscriminators()])
api = OpenAPI.loads(URLBASE, json.dumps(data), plugins=[linode_test.LinodeDiscriminators()])
import datetime

s = api.components.schemas["PaymentMethod"]
Expand Down

0 comments on commit 9c9d401

Please sign in to comment.