tests update + profile.py now can load and save data
This commit is contained in:
parent
14dd46b716
commit
3481d3385b
2 changed files with 29 additions and 2 deletions
|
@ -42,3 +42,13 @@ class TestProfile():
|
|||
def test_search(self):
|
||||
arr = Profile.find_profiles()
|
||||
assert arr
|
||||
|
||||
def test_open(self):
|
||||
data = Profile.open_profile(Settings.get_default_path(), 'tox_save')
|
||||
assert data
|
||||
|
||||
def test_open_save(self):
|
||||
data = Profile.open_profile(Settings.get_default_path(), 'tox_save')
|
||||
Profile.save_profile(data)
|
||||
new_data = Profile.open_profile(Settings.get_default_path(), 'tox_save')
|
||||
assert new_data == data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue