Skip to content

Commit

Permalink
update method writer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shemogumbe committed Oct 21, 2024
1 parent 9c7eebf commit 3ee244b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Kiota.Builder.Tests/Writers/Python/CodeMethodWriterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,17 @@ public void WritesInheritedDeSerializerBody()
Assert.Contains("return fields", result);
Assert.DoesNotContain("defined_in_parent", result, StringComparison.OrdinalIgnoreCase);
}

[Fact]

public void Writes_UnionOfPrimitiveValues_FactoryFunctionAsync()
{

var result = tw.ToString();
Assert.Contains("return parseNode?.getNumberValue() ?? parseNode?.getStringValue();", result);
AssertExtensions.CurlyBracesAreClosed(result, 1);
}

[Fact]
public void WritesUnionDeSerializerBody()
{
Expand Down

0 comments on commit 3ee244b

Please sign in to comment.