tests update + profile.py now can load and save data

This commit is contained in:
ingvar1995 2016-02-18 19:52:12 +03:00
parent 14dd46b716
commit 3481d3385b
2 changed files with 29 additions and 2 deletions

View file

@ -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