Skip to content

Commit a47dd70

Browse files
committed
remove uneeded comments
1 parent 5acdb31 commit a47dd70

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

tests/unit/synapseclient/extensions/test_schema_management.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ def mock_jsonschema():
2424

2525
@pytest.mark.asyncio
2626
async def test_register_jsonschema_async(mock_synapse_client, mock_jsonschema):
27-
# Setup
2827
schema_path = "mock_path.json"
2928
schema_content = {"$id": "test_schema", "type": "object"}
3029
org_name = "test.org"
3130
schema_name = "my-schema_name"
3231
version = "1.0.0"
3332

34-
# Mock file reading and the Synapse client retrieval
3533
m_open = mock_open(read_data=json.dumps(schema_content))
3634

3735
with patch("builtins.open", m_open), patch(
@@ -50,7 +48,6 @@ async def test_register_jsonschema_async(mock_synapse_client, mock_jsonschema):
5048
name=schema_name, organization_name=org_name
5149
)
5250

53-
# Verify the async store was called with the right data
5451
result.store_async.assert_awaited_once_with(
5552
schema_body=schema_content,
5653
version=version,
@@ -64,15 +61,13 @@ async def test_register_jsonschema_async(mock_synapse_client, mock_jsonschema):
6461
async def test_register_jsonschema_async_fix_schema_name(
6562
mock_synapse_client, mock_jsonschema
6663
):
67-
# Setup
6864
schema_path = "mock_path.json"
6965
schema_content = {"$id": "test_schema", "type": "object"}
7066
org_name = "test.org"
7167
schema_name = "my-schema_name"
7268
fixed_schema_name = "my.schema.name"
7369
version = "1.0.0"
7470

75-
# Mock file reading and the Synapse client retrieval
7671
m_open = mock_open(read_data=json.dumps(schema_content))
7772

7873
with patch("builtins.open", m_open), patch(
@@ -92,7 +87,6 @@ async def test_register_jsonschema_async_fix_schema_name(
9287
name=fixed_schema_name, organization_name=org_name
9388
)
9489

95-
# Verify the async store was called with the right data
9690
result.store_async.assert_awaited_once_with(
9791
schema_body=schema_content,
9892
version=version,

0 commit comments

Comments
 (0)