Add 'created_by' field to track project creator

This commit is contained in:
Felix Schulz committed 2026-02-21 22:15:21 +01:00
1 parent 1958deff09
commit 8ab34924b5
6 files changed
+38 -2

No files matched your search

+12 -1
View File
@@ -81,10 +81,21 @@ async def test_json():
"grid_size": 75,
"drawing_grid_size": 25,
"supplier": None,
"variables": None
"variables": None,
"created_by": None
}
@pytest.mark.asyncio
async def test_created_by():
with patch('gns3server.controller.project.Project.emit_controller_notification'):
p = Project(name="Test", created_by="admin")
assert p.created_by == "admin"
assert p.asdict()["created_by"] == "admin"
@pytest.mark.asyncio
async def test_update(controller):