From d0c9dcf951a3b3d55d1c58ee0cfe600fffb1267f Mon Sep 17 00:00:00 2001 From: Mauro Scomparin Date: Thu, 5 Jul 2018 23:40:25 +0200 Subject: [PATCH] changed config location and filename --- money/money.py | 4 ++-- money/tests/test_money.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/money/money.py b/money/money.py index a61dabf..beb4e1d 100755 --- a/money/money.py +++ b/money/money.py @@ -6,8 +6,8 @@ import json DATA_FILE_NAME = 'dataFile' LAST_MOVEMENT_NUMBER = 'latestMovementsNumber' -CONFIG_FILE_NAME = 'money-config.json' -CONFIG_FILE_LOCATION = expanduser('~') + CONFIG_FILE_NAME +CONFIG_FILE_NAME = 'money.conf' +CONFIG_FILE_LOCATION = expanduser('~') + '/.config/' + CONFIG_FILE_NAME def scrivi_movimento(path, m): diff --git a/money/tests/test_money.py b/money/tests/test_money.py index 30756e6..059149f 100644 --- a/money/tests/test_money.py +++ b/money/tests/test_money.py @@ -11,11 +11,11 @@ class MoneyTest(unittest.TestCase): self.assertTrue(True, msg='se fallisce son problemi') def test_config_file_name(self): - self.assertEqual(money.CONFIG_FILE_NAME, 'money-config.json') + self.assertEqual(money.CONFIG_FILE_NAME, 'money.conf') def test_config_file_path(self): self.assertEqual(money.CONFIG_FILE_LOCATION, - expanduser('~') + 'money-config.json') + expanduser('~') + '/.config/money.conf') def test_default_configuration(self): conf = money.default_configuration() -- 2.25.1