Skip to content
Snippets Groups Projects
Commit 657a3233 authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

#57 Endret parameternavn

parent a74988fe
No related branches found
No related tags found
2 merge requests!44#57 Database: testmodus og bruk samme instans overalt,!42WIP: #57 Én databaseinstans og testmodus for database
Pipeline #76444 passed
......@@ -44,9 +44,9 @@ class Database:
Database can be run in testmode, this will create a seperate database-file.
"""
def __init__(self, test_mode=False):
def __init__(self, testmode=False):
if test_mode:
if testmode:
db_path = TESTDBPATH
else:
db_path = DBPATH
......
......@@ -16,7 +16,7 @@ class DatabaseTest(unittest.TestCase):
def setUp(self):
"""Connect to/create database."""
self.database = Database(test_mode=True)
self.database = Database(testmode=True)
self.addCleanup(self.delete_db)
def test_connection(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment