Forking what is left of ZeroNet and hopefully adding an AT Proto Frontend/Proxy
1import pytest
2import json
3from Config import config
4from User import UserManager
5
6@pytest.mark.usefixtures("resetSettings")
7@pytest.mark.usefixtures("resetTempSettings")
8class TestMultiuser:
9 def testMemorySave(self, user):
10 # It should not write users to disk
11 users_before = open("%s/users.json" % config.data_dir).read()
12 user = UserManager.user_manager.create()
13 user.save()
14 assert open("%s/users.json" % config.data_dir).read() == users_before