fix(identity): isolate public web entries
This commit is contained in:
1 parent
240f1f9903
commit
2065fe2acd
5 files changed
+17
-34
No files matched your search
@@ -86,6 +86,13 @@ class ApiTests(unittest.TestCase):
|
||||
self.assertEqual(response["status"], "needs_input")
|
||||
self.assertIn("имя", response["message"].lower())
|
||||
|
||||
def test_public_identity_completion_does_not_write_shared_directory(self):
|
||||
directory = IdentityDirectory()
|
||||
with patch.object(api, "_IDENTITY_DIRECTORY", directory):
|
||||
response = resolve_identity_payload({"name": "Серолап", "character_id": 1617140, "remember": True})
|
||||
self.assertEqual(response["status"], "provided")
|
||||
self.assertIsNone(directory.resolve(character_id=1617140))
|
||||
|
||||
def test_calculation_store_persists_full_record(self):
|
||||
with TemporaryDirectory() as directory:
|
||||
path = f"{directory}/history.sqlite3"
|
||||
|
||||
Reference in new issue
Block a user