Does this work for Windows config file paths?
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ from sucks.cli import *
|
|||||||
def test_config_file_name():
|
def test_config_file_name():
|
||||||
if platform.system() == 'Windows':
|
if platform.system() == 'Windows':
|
||||||
print(config_file())
|
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:
|
else:
|
||||||
assert_true(re.match(r'/.+/\w+/.config/sucks.conf', config_file()))
|
assert_true(re.match(r'/.+/\w+/.config/sucks.conf', config_file()))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user