perfidia / andip

Dictionary for natural language generator. It contains data about declension, conjugation, etc. (mainly for Polish and English language).
MIT License
4 stars 1 forks source link

close function in DataProvider #7

Closed perfidia closed 11 years ago

perfidia commented 11 years ago

Why close() was removed from DataProvider? Because of this decision there is a need to keep reference to DatabaseProvider (in order to close it).

Moreover the tests are not passing:

ERROR: tearDownClass (database.polish.DatabasePolishTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/andip/tests/database/polish.py", line 27, in tearDownClass
    cls.ad_db.close()
AttributeError: 'AnDiP' object has no attribute 'close'