Make the path to the test.db file relative to the adif.py file.

pull/32/head
Christian Jacobs 2015-02-08 13:47:24 +00:00
rodzic bf4caef61a
commit f49ac8738e
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -449,7 +449,8 @@ class TestADIF(unittest.TestCase):
def test_adif_write_sqlite3_Row(self):
import sqlite3
self.connection = sqlite3.connect("./unittest_resources/test.db")
import os.path
self.connection = sqlite3.connect(os.path.dirname(os.path.realpath(__file__))+"/unittest_resources/test.db")
self.connection.row_factory = sqlite3.Row
c = self.connection.cursor()