13
13
ExternalIdentifierType ,
14
14
Organization ,
15
15
Person ,
16
- ProfileIdentifier ,
16
+ ProfileIdentifierType ,
17
17
Tool ,
18
18
)
19
19
from spdx_tools .spdx3 .payload import Payload
37
37
def test_bump_actor (actor_type , actor_name , actor_mail , element_type , new_spdx_id ):
38
38
payload = Payload ()
39
39
document_namespace = "https://doc.namespace"
40
- creation_info = CreationInfo (Version ("3.0.0" ), datetime (2022 , 1 , 1 ), ["Creator" ], [ProfileIdentifier .CORE ])
40
+ creation_info = CreationInfo (Version ("3.0.0" ), datetime (2022 , 1 , 1 ), ["Creator" ], [ProfileIdentifierType .CORE ])
41
41
actor = Actor (actor_type , actor_name , actor_mail )
42
42
43
43
agent_or_tool_id = bump_actor (actor , payload , document_namespace , creation_info )
@@ -54,8 +54,8 @@ def test_bump_actor(actor_type, actor_name, actor_mail, element_type, new_spdx_i
54
54
55
55
56
56
def test_bump_actor_that_already_exists ():
57
- creation_info_old = CreationInfo (Version ("3.0.0" ), datetime (2022 , 1 , 1 ), ["Creator" ], [ProfileIdentifier .CORE ])
58
- creation_info_new = CreationInfo (Version ("3.0.0" ), datetime (2023 , 2 , 2 ), ["Creator" ], [ProfileIdentifier .CORE ])
57
+ creation_info_old = CreationInfo (Version ("3.0.0" ), datetime (2022 , 1 , 1 ), ["Creator" ], [ProfileIdentifierType .CORE ])
58
+ creation_info_new = CreationInfo (Version ("3.0.0" ), datetime (2023 , 2 , 2 ), ["Creator" ], [ProfileIdentifierType .CORE ])
59
59
60
60
name = "some name"
61
61
document_namespace = "https://doc.namespace"
0 commit comments