mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
fix clean in test_settings
This commit is contained in:
parent
6745fce647
commit
ab834f1885
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
|
import glob
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from yunohost.utils.error import YunohostError
|
from yunohost.utils.error import YunohostError
|
||||||
|
@ -28,6 +29,8 @@ def setup_function(function):
|
||||||
|
|
||||||
def teardown_function(function):
|
def teardown_function(function):
|
||||||
os.system("mv /etc/yunohost/settings.json.saved /etc/yunohost/settings.json")
|
os.system("mv /etc/yunohost/settings.json.saved /etc/yunohost/settings.json")
|
||||||
|
for filename in glob.glob("/etc/yunohost/settings-*.json"):
|
||||||
|
os.remove(filename)
|
||||||
|
|
||||||
|
|
||||||
def test_settings_get_bool():
|
def test_settings_get_bool():
|
||||||
|
|
Loading…
Add table
Reference in a new issue