From 1fba60537dcac8be664de0e3ba2c66143cc996bd Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 22 Jun 2021 19:06:18 -0700 Subject: [PATCH] Try more aggressive noqa, refs #291 --- tests/test_register_function.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_register_function.py b/tests/test_register_function.py index c99477e..06f4857 100644 --- a/tests/test_register_function.py +++ b/tests/test_register_function.py @@ -55,14 +55,14 @@ def test_register_function_replace(fresh_db): # This will fail to replace the function: @fresh_db.register_function() - def one(): # noqa: F811 + def one(): # noqa return "two" assert "one" == fresh_db.execute("select one()").fetchone()[0] # This will replace it @fresh_db.register_function(replace=True) - def one(): # noqa: F811 + def one(): # noqa return "two" assert "two" == fresh_db.execute("select one()").fetchone()[0]