mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 11:30:19 +01:00
29 lines
637 B
Python
29 lines
637 B
Python
"""
|
|
Project: pyGTKtalog
|
|
Description: Tests for DataBase class.
|
|
Type: test
|
|
Author: Roman 'gryf' Dobosz, gryf73@gmail.com
|
|
Created: 2009-07-19
|
|
"""
|
|
import unittest
|
|
import os
|
|
|
|
from pycatalog.dbcommon import connect
|
|
|
|
|
|
class TestDataBase(unittest.TestCase):
|
|
"""
|
|
Class responsible for database connection and schema creation
|
|
"""
|
|
|
|
def test_connect(self):
|
|
"""
|
|
Test connection to database. Memory and file method will be tested.
|
|
"""
|
|
connect(":memory:")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
os.chdir(os.path.join(os.path.abspath(os.path.dirname(__file__)), "../"))
|
|
unittest.main()
|