#11 REFACTOR: Moved all tests into test classes
This commit is contained in:
@ -37,11 +37,6 @@ def create_connection(path: str, filename: str):
|
||||
conn.close()
|
||||
|
||||
|
||||
# Ensure a directory is created given a path to it
|
||||
if __name__ == "__main__":
|
||||
run()
|
||||
|
||||
|
||||
def run():
|
||||
""" Create the database for the application"""
|
||||
dir = r"./data/"
|
||||
@ -55,3 +50,8 @@ def run():
|
||||
remove_file(dir + db_name)
|
||||
|
||||
create_connection(dir, db_name)
|
||||
|
||||
|
||||
# Ensure a directory is created given a path to it
|
||||
if __name__ == "__main__":
|
||||
run()
|
||||
|
Reference in New Issue
Block a user