Skip to content

Commit c509b36

Browse files
committed
update test to use endswith
1 parent f036757 commit c509b36

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tests/integration/synapseclient/models/async/test_json_schema_async.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,8 @@ async def test_get_invalid_validation_async(
551551

552552
assert validation_response.object_type == "entity"
553553
assert validation_response.object_etag is not None
554-
assert (
555-
validation_response.id
556-
== f"https://repo-prod.prod.sagebase.org/repo/v1/schema/type/registered/{test_org.name}-{TEST_SCHEMA_NAME}-{SCHEMA_VERSION}"
554+
assert validation_response.id.endswith(
555+
f"repo/v1/schema/type/registered/{test_org.name}-{TEST_SCHEMA_NAME}-{SCHEMA_VERSION}"
557556
)
558557
assert validation_response.is_valid == False
559558
assert validation_exception.message == "2 schema violations found"

tests/integration/synapseclient/models/synchronous/test_json_schema.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,9 +545,8 @@ def test_get_invalid_validation(
545545

546546
assert validation_response.object_type == "entity"
547547
assert validation_response.object_etag is not None
548-
assert (
549-
validation_response.id
550-
== f"https://repo-prod.prod.sagebase.org/repo/v1/schema/type/registered/{test_org.name}-{TEST_SCHEMA_NAME}-{SCHEMA_VERSION}"
548+
assert validation_response.id.endswith(
549+
f"repo/v1/schema/type/registered/{test_org.name}-{TEST_SCHEMA_NAME}-{SCHEMA_VERSION}"
551550
)
552551
assert validation_response.is_valid == False
553552
assert validation_exception.message == "2 schema violations found"

0 commit comments

Comments
 (0)