mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 19:40:21 +01:00
30 lines
688 B
Python
30 lines
688 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 tempfile import mkstemp
|
|
|
|
from pygtktalog.dbcommon import connect, Meta, Session, Base
|
|
|
|
|
|
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()
|