Remove duplicate update database body (#1584)
This commit is contained in:
8
tests/test_update_database_script.py
Normal file
8
tests/test_update_database_script.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_update_database_has_single_main_guard():
|
||||
script = Path(__file__).resolve().parent.parent / "scripts" / "update_database.py"
|
||||
text = script.read_text()
|
||||
|
||||
assert text.count('if __name__ == "__main__":') == 1
|
||||
Reference in New Issue
Block a user