mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Add 'created_by' field to track project creator
This commit is contained in:
1 parent
1958deff09
commit
8ab34924b5
6 files changed
+38
-2
No files matched your search
@@ -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):
|
||||
|
||||
|
||||
Reference in new issue
Block a user