mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Not sure why this stop working, maybe new pytest version or something...
This commit is contained in:
parent
ea98cf557e
commit
bf659db300
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ def setup_function(function):
|
||||||
|
|
||||||
assert len(backup_list()["archives"]) == 0
|
assert len(backup_list()["archives"]) == 0
|
||||||
|
|
||||||
markers = function.__dict__.keys()
|
markers = [m.name for m in function.__dict__.get("pytestmark",[])]
|
||||||
|
|
||||||
if "with_wordpress_archive_from_2p4" in markers:
|
if "with_wordpress_archive_from_2p4" in markers:
|
||||||
add_archive_wordpress_from_2p4()
|
add_archive_wordpress_from_2p4()
|
||||||
|
@ -82,7 +82,7 @@ def teardown_function(function):
|
||||||
delete_all_backups()
|
delete_all_backups()
|
||||||
uninstall_test_apps_if_needed()
|
uninstall_test_apps_if_needed()
|
||||||
|
|
||||||
markers = function.__dict__.keys()
|
markers = [m.name for m in function.__dict__.get("pytestmark",[])]
|
||||||
|
|
||||||
if "clean_opt_dir" in markers:
|
if "clean_opt_dir" in markers:
|
||||||
shutil.rmtree("/opt/test_backup_output_directory")
|
shutil.rmtree("/opt/test_backup_output_directory")
|
||||||
|
|
Loading…
Add table
Reference in a new issue