Blacken
This commit is contained in:
@@ -4,13 +4,19 @@ from betterproto.tests.output_betterproto.casing.casing import Test
|
||||
|
||||
def test_message_attributes():
|
||||
message = Test()
|
||||
assert hasattr(message, 'snake_case_message'), 'snake_case field name is same in python'
|
||||
assert hasattr(message, 'camel_case'), 'CamelCase field is snake_case in python'
|
||||
assert hasattr(
|
||||
message, "snake_case_message"
|
||||
), "snake_case field name is same in python"
|
||||
assert hasattr(message, "camel_case"), "CamelCase field is snake_case in python"
|
||||
|
||||
|
||||
def test_message_casing():
|
||||
assert hasattr(casing, 'SnakeCaseMessage'), 'snake_case Message name is converted to CamelCase in python'
|
||||
assert hasattr(
|
||||
casing, "SnakeCaseMessage"
|
||||
), "snake_case Message name is converted to CamelCase in python"
|
||||
|
||||
|
||||
def test_enum_casing():
|
||||
assert hasattr(casing, 'MyEnum'), 'snake_case Enum name is converted to CamelCase in python'
|
||||
assert hasattr(
|
||||
casing, "MyEnum"
|
||||
), "snake_case Enum name is converted to CamelCase in python"
|
||||
|
||||
@@ -2,7 +2,9 @@ from typing import Optional
|
||||
|
||||
import pytest
|
||||
|
||||
from betterproto.tests.output_betterproto.googletypes_response.googletypes_response import TestStub
|
||||
from betterproto.tests.output_betterproto.googletypes_response.googletypes_response import (
|
||||
TestStub
|
||||
)
|
||||
|
||||
|
||||
class TestStubChild(TestStub):
|
||||
@@ -12,7 +14,7 @@ class TestStubChild(TestStub):
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test():
|
||||
pytest.skip('todo')
|
||||
pytest.skip("todo")
|
||||
stub = TestStubChild(None)
|
||||
await stub.get_int64()
|
||||
assert stub.response_type != Optional[int]
|
||||
|
||||
Reference in New Issue
Block a user