From 30bcf0db2aadce943a66124cf669c361a9bcad6a Mon Sep 17 00:00:00 2001 From: shemogumbe Date: Fri, 9 Aug 2024 18:23:12 +0300 Subject: [PATCH] Update unit tests --- .../Writers/Python/CodeMethodWriterTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Kiota.Builder.Tests/Writers/Python/CodeMethodWriterTests.cs b/tests/Kiota.Builder.Tests/Writers/Python/CodeMethodWriterTests.cs index 4bb0166050..2d3516a271 100644 --- a/tests/Kiota.Builder.Tests/Writers/Python/CodeMethodWriterTests.cs +++ b/tests/Kiota.Builder.Tests/Writers/Python/CodeMethodWriterTests.cs @@ -2086,7 +2086,7 @@ public void WritesNameMapperMethod() }); writer.Write(method); var result = tw.ToString(); - Assert.Contains("if not original_name:", result); + Assert.Contains("if original_name is None:", result); Assert.Contains("if original_name == \"select\":", result); Assert.Contains("return \"%24select\"", result); Assert.Contains("if original_name == \"expand\":", result); @@ -2124,7 +2124,7 @@ public void WritesNameMapperMethodWithUnescapedProperties() }); writer.Write(method); var result = tw.ToString(); - Assert.Contains("if not original_name:", result); + Assert.Contains("if original_name is None:", result); Assert.Contains("if original_name == \"start_date_time\":", result); Assert.Contains("return \"startDateTime\"", result); Assert.Contains("return original_name", result);