@@ -25,15 +25,14 @@ def test_create_incarnation(gitlab_api_client, foxops_client: FoxopsClient, temp
25
25
incarnation_path = gitlab_project_factory (return_path = True )
26
26
27
27
# WHEN
28
- imported , incarnation = foxops_client .create_incarnation (
28
+ incarnation = foxops_client .create_incarnation (
29
29
incarnation_repository = incarnation_path ,
30
30
template_repository = template_path ,
31
31
template_repository_version = "main" ,
32
32
template_data = {"input_variable" : "foo" },
33
33
)
34
34
35
35
# THEN
36
- assert imported is False
37
36
assert incarnation .id is not None
38
37
39
38
assert incarnation .incarnation_repository == incarnation_path
@@ -42,28 +41,6 @@ def test_create_incarnation(gitlab_api_client, foxops_client: FoxopsClient, temp
42
41
assert incarnation .template_data == {"input_variable" : "foo" }
43
42
44
43
45
- def test_create_incarnation_import_with_existing_incarnation (incarnation , foxops_client : FoxopsClient ):
46
- # GIVEN
47
- foxops_client .delete_incarnation (incarnation .id )
48
-
49
- # WHEN
50
- imported , response = foxops_client .create_incarnation (
51
- incarnation_repository = incarnation .incarnation_repository ,
52
- template_repository = incarnation .template_repository ,
53
- template_repository_version = incarnation .template_repository_version ,
54
- template_data = incarnation .template_data ,
55
- allow_import = True ,
56
- )
57
-
58
- # THEN
59
- assert imported is True
60
-
61
- assert response .incarnation_repository == incarnation .incarnation_repository
62
- assert response .template_repository == incarnation .template_repository
63
- assert response .template_repository_version == "main"
64
- assert response .template_data == {"input_variable" : "foo" }
65
-
66
-
67
44
def test_create_incarnation_with_conflicting_existing_incarnation (incarnation , foxops_client ):
68
45
# WHEN
69
46
with pytest .raises (FoxopsApiError ) as e :
@@ -148,7 +125,7 @@ def create_incarnation(template, gitlab_project_factory, foxops_client):
148
125
template_path = template
149
126
incarnation_path = gitlab_project_factory (return_path = True )
150
127
151
- _ , incarnation = foxops_client .create_incarnation (
128
+ incarnation = foxops_client .create_incarnation (
152
129
incarnation_repository = incarnation_path ,
153
130
template_repository = template_path ,
154
131
template_repository_version = "main" ,
0 commit comments