Remove download dir from path info
This always returns the default Qt path (e.g. ~/Downloads) and also creates it each time. See #2418
This commit is contained in:
parent
a1f91f799f
commit
91f5e72f02
@ -224,7 +224,6 @@ def _path_info():
|
|||||||
'data': standarddir.data(),
|
'data': standarddir.data(),
|
||||||
'system_data': standarddir.system_data(),
|
'system_data': standarddir.system_data(),
|
||||||
'cache': standarddir.cache(),
|
'cache': standarddir.cache(),
|
||||||
'download': standarddir.download(),
|
|
||||||
'runtime': standarddir.runtime(),
|
'runtime': standarddir.runtime(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -463,7 +463,6 @@ def test_path_info(monkeypatch):
|
|||||||
'data': lambda: 'DATA PATH',
|
'data': lambda: 'DATA PATH',
|
||||||
'system_data': lambda: 'SYSTEM DATA PATH',
|
'system_data': lambda: 'SYSTEM DATA PATH',
|
||||||
'cache': lambda: 'CACHE PATH',
|
'cache': lambda: 'CACHE PATH',
|
||||||
'download': lambda: 'DOWNLOAD PATH',
|
|
||||||
'runtime': lambda: 'RUNTIME PATH',
|
'runtime': lambda: 'RUNTIME PATH',
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -476,7 +475,6 @@ def test_path_info(monkeypatch):
|
|||||||
assert pathinfo['data'] == 'DATA PATH'
|
assert pathinfo['data'] == 'DATA PATH'
|
||||||
assert pathinfo['system_data'] == 'SYSTEM DATA PATH'
|
assert pathinfo['system_data'] == 'SYSTEM DATA PATH'
|
||||||
assert pathinfo['cache'] == 'CACHE PATH'
|
assert pathinfo['cache'] == 'CACHE PATH'
|
||||||
assert pathinfo['download'] == 'DOWNLOAD PATH'
|
|
||||||
assert pathinfo['runtime'] == 'RUNTIME PATH'
|
assert pathinfo['runtime'] == 'RUNTIME PATH'
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user