Skip to content
Snippets Groups Projects
Commit cbc179f8 authored by inso's avatar inso
Browse files

Fix tests

parent c65ccf86
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ class PluginsDirectory:
os.makedirs(plugins_path)
return cls(plugins_path)
def load_or_init(self, with_plugin):
def load_or_init(self, with_plugin=""):
"""
Init plugins
"""
......
......@@ -7,10 +7,4 @@ import os
class TestAppDataFile(unittest.TestCase):
def test_init_save_load(self):
file = os.path.join(tempfile.mkdtemp(), "params.json")
app_data = AppData()
app_data_file = AppDataFile(file)
app_data.profiles.append("default")
app_data_file.save(app_data)
app_data_2 = app_data_file.load_or_init()
self.assertEqual(app_data, app_data_2)
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment