Adding tests for reading and writing config.

This commit is contained in:
William Pietri
2017-12-04 20:54:36 -08:00
parent c691f1918e
commit f1b2fbc3ab
2 changed files with 11 additions and 6 deletions
+2 -1
View File
@@ -58,9 +58,10 @@ def read_config():
def write_config(config):
os.makedirs(os.path.dirname(config_file()), exist_ok=True)
with open(config_file(), 'w') as fp:
for key in config:
fp.write(key + '=' + config[key] + "\n")
fp.write(key + '=' + str(config[key]) + "\n")
def current_country():