From c691f1918e373be9e180ee46f8834ec84a46d588 Mon Sep 17 00:00:00 2001 From: William Pietri Date: Mon, 4 Dec 2017 20:25:53 -0800 Subject: [PATCH] Does this work for Windows config file paths? --- tests/test_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index e4c9edd..ef3add4 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -7,7 +7,7 @@ from sucks.cli import * def test_config_file_name(): if platform.system() == 'Windows': print(config_file()) - assert_true(re.match(r'[A-Z]:\\.+\\\w+\\AppData\\sucks.conf', config_file())) + assert_true(re.match(r'[A-Z]:\\.+\\\w+\\AppData(\\Roaming)?\\sucks.conf', config_file())) else: assert_true(re.match(r'/.+/\w+/.config/sucks.conf', config_file()))