Fix Travis build error.

This commit is contained in:
Arun Prakash Jana 2016-10-10 10:22:21 +05:30
parent 503caeccdc
commit 59a101836f
2 changed files with 2 additions and 2 deletions

2
buku
View File

@ -299,7 +299,7 @@ class BukuDb:
data_home = os.environ.get('XDG_DATA_HOME')
if data_home is None:
if os.environ.get('HOME') is None:
return '.'
return os.path.abspath('.')
else:
data_home = os.path.join(os.environ.get('HOME'),
'.local', 'share')

View File

@ -66,7 +66,7 @@ class TestBukuDb(unittest.TestCase):
def test_get_dbdir_path(self):
dbdir_expected = TEST_TEMP_DBDIR_PATH
dbdir_local_expected = join(expanduser('~'), '.local', 'share', 'buku')
dbdir_relative_expected = join('.', 'buku')
dbdir_relative_expected = os.path.abspath('.')
# desktop linux
self.assertEqual(dbdir_expected, BukuDb.get_dbdir_path())