mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 11:30:19 +01:00
Clean up old files. Repair unit tests
This commit is contained in:
28
tests/dbcommon_test.py
Normal file
28
tests/dbcommon_test.py
Normal file
@@ -0,0 +1,28 @@
|
||||
"""
|
||||
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 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()
|
||||
Reference in New Issue
Block a user