Skip to content

Commit

Permalink
fix(test): Fix deprecation warnings due to invalid escape sequences. (#…
Browse files Browse the repository at this point in the history
…1787)

Co-authored-by: Jacob Fuss <32497805+jfuss@users.noreply.github.com>
  • Loading branch information
tirkarthi and jfuss committed Feb 11, 2020
1 parent fa19f22 commit 546d06e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/integration/init/schemas/schemas_test_data_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _create_3p_schemas(registry_name, schemas_client, no_of_schemas):
'{"openapi":"3.0.0","info":{"version":"1.0.0","title":"TicketCreated"},"paths":{},"components":{"schemas":{"AWSEvent":{"type":"object",'
'"required":["detail-type","resources","id","source","time","detail","region","version","account"],"x-amazon-events-detail-type":"MongoDB Trigger for '
'my_store.reviews","x-amazon-events-source":"aws.partner-mongodb.com","properties":{"detail":{'
'"$ref":"#\/components\/schemas\/aws.partner\/mongodb.com\/Ticket.Created"},"detail-type":{"type":"string"},"resources":{"type":"array",'
r'"$ref":"#\/components\/schemas\/aws.partner\/mongodb.com\/Ticket.Created"},"detail-type":{"type":"string"},"resources":{"type":"array",'
'"items":{"type":"string"}},"id":{"type":"string"},"source":{"type":"string"},"time":{"type":"string","format":"date-time"},'
'"region":{"type":"string","enum":["ap-south-1","eu-west-3","eu-north-1","eu-west-2","eu-west-1","ap-northeast-2","ap-northeast-1","me-south-1",'
'"sa-east-1","ca-central-1","ap-east-1","cn-north-1","us-gov-west-1","ap-southeast-1","ap-southeast-2","eu-central-1","us-east-1","us-west-1",'
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/lib/schemas/test_schemas_api_caller.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ def test_get_schema_metadata_2p_schema_with_multiple_type(self):
"openapi": "3.0.0",
"info": {"version": "1.0.0", "title": "SomeAwesomeSchema"},
"paths": {},
"Content": '{"components":{"schemas":{"Some\/Awesome\/Schema.Object.1":{"type":"object","required":["foo","bar","baz"],"properties":{"foo":{"type":"string"},'
'"bar":{"type":"string"},"baz":{"type":"string"}}},"Some\/Awesome\/Schema.Object$2":{"type":"object","required":["foo","bar","baz"],'
"Content": r'{"components":{"schemas":{"Some\/Awesome\/Schema.Object.1":{"type":"object","required":["foo","bar","baz"],"properties":{"foo":{"type":"string"},'
r'"bar":{"type":"string"},"baz":{"type":"string"}}},"Some\/Awesome\/Schema.Object$2":{"type":"object","required":["foo","bar","baz"],'
'"properties":{"foo":{"type":"string"},"bar":{"type":"string"},"baz":{"type":"string"}}}}}}',
}
registry_name = "registry1"
Expand Down

0 comments on commit 546d06e

Please sign in to comment.