Skip to content

Commit

Permalink
Try more aggressive noqa, refs #291
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jun 23, 2021
1 parent 02898bf commit 1fba605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_register_function.py
Expand Up @@ -55,14 +55,14 @@ def one():

# 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]

0 comments on commit 1fba605

Please sign in to comment.