From 509bb1ea277281136bde2ab42c0e2366329a1337 Mon Sep 17 00:00:00 2001 From: sezanzeb <28510156+sezanzeb@users.noreply.github.com> Date: Sat, 4 Jan 2025 13:31:57 +0100 Subject: [PATCH] uncomment tests in test_set --- tests/unit/test_macros/test_set.py | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/tests/unit/test_macros/test_set.py b/tests/unit/test_macros/test_set.py index 86bdf27a..bea4f785 100644 --- a/tests/unit/test_macros/test_set.py +++ b/tests/unit/test_macros/test_set.py @@ -48,17 +48,33 @@ async def test_set_key(self): ) async def test_set(self): - """await Parser.parse('set(a, "foo")', self.context, DummyMapping).run(self.handler) + await Parser.parse( + 'set(a, "foo")', + self.context, + DummyMapping, + ).run(self.handler) self.assertEqual(macro_variables.get("a"), "foo") - await Parser.parse('set( \t"b" \n, "1")', self.context, DummyMapping).run(self.handler) - self.assertEqual(macro_variables.get("b"), "1")""" + await Parser.parse( + 'set( \t"b" \n, "1")', + self.context, + DummyMapping, + ).run(self.handler) + self.assertEqual(macro_variables.get("b"), "1") - await Parser.parse("set(a, 1)", self.context, DummyMapping).run(self.handler) + await Parser.parse( + "set(a, 1)", + self.context, + DummyMapping, + ).run(self.handler) self.assertEqual(macro_variables.get("a"), 1) - """await Parser.parse("set(a, )", self.context, DummyMapping).run(self.handler) - self.assertEqual(macro_variables.get("a"), None)""" + await Parser.parse( + "set(a, )", + self.context, + DummyMapping, + ).run(self.handler) + self.assertEqual(macro_variables.get("a"), None) async def test_raises_error(self): self.assertRaises(MacroError, Parser.parse, "set($a, 1)", self.context)