Skip to content

Commit

Permalink
fixup! perf(sdk): improve issue custom fields parsing speed
Browse files Browse the repository at this point in the history
  • Loading branch information
catcombo committed Jun 21, 2024
1 parent 744ebc2 commit 09280ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from http import HTTPStatus
from typing import Literal, Optional, Sequence, Union
from typing import Annotated, Literal, Optional, Sequence, Union
from unittest import TestCase

import requests_mock
Expand Down Expand Up @@ -58,6 +58,10 @@ def test_union_type(self):
"$type,id,shortName,value($type,id,shortName)",
model_to_field_names(Union[SimpleModel | NestedModel]),
)
self.assertEqual(
"$type,id,shortName,value($type,id,shortName)",
model_to_field_names(Annotated[SimpleModel | NestedModel, Field(discriminator="type")]),
)


class TestHelpers(TestCase):
Expand Down

0 comments on commit 09280ca

Please sign in to comment.