mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 01:04:00 -04:00
more debug about state.json
This commit is contained in:
@@ -164,10 +164,11 @@ def test_create_new_template(authenticated_page):
|
|||||||
# Search in <search_path>
|
# Search in <search_path>
|
||||||
search_path = "/"
|
search_path = "/"
|
||||||
found_state_json = False
|
found_state_json = False
|
||||||
|
wrong_paths = ['/var/lib/snapd/state.json']
|
||||||
for root, dirs, files in os.walk(search_path):
|
for root, dirs, files in os.walk(search_path):
|
||||||
if filename in files:
|
if filename in files:
|
||||||
file_path = os.path.join(root, filename)
|
file_path = os.path.join(root, filename)
|
||||||
if os.path.isfile(file_path):
|
if os.path.isfile(file_path) and file_path not in wrong_paths:
|
||||||
found_state_json = True
|
found_state_json = True
|
||||||
assert found_state_json is True
|
assert found_state_json is True
|
||||||
assert file_path == 'foo'
|
assert file_path == 'foo'
|
||||||
|
|||||||
Reference in New Issue
Block a user