@@ -25,15 +25,14 @@ def test_create_incarnation(gitlab_api_client, foxops_client: FoxopsClient, temp
2525 incarnation_path = gitlab_project_factory (return_path = True )
2626
2727 # WHEN
28- imported , incarnation = foxops_client .create_incarnation (
28+ incarnation = foxops_client .create_incarnation (
2929 incarnation_repository = incarnation_path ,
3030 template_repository = template_path ,
3131 template_repository_version = "main" ,
3232 template_data = {"input_variable" : "foo" },
3333 )
3434
3535 # THEN
36- assert imported is False
3736 assert incarnation .id is not None
3837
3938 assert incarnation .incarnation_repository == incarnation_path
@@ -42,28 +41,6 @@ def test_create_incarnation(gitlab_api_client, foxops_client: FoxopsClient, temp
4241 assert incarnation .template_data == {"input_variable" : "foo" }
4342
4443
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-
6744def test_create_incarnation_with_conflicting_existing_incarnation (incarnation , foxops_client ):
6845 # WHEN
6946 with pytest .raises (FoxopsApiError ) as e :
@@ -148,7 +125,7 @@ def create_incarnation(template, gitlab_project_factory, foxops_client):
148125 template_path = template
149126 incarnation_path = gitlab_project_factory (return_path = True )
150127
151- _ , incarnation = foxops_client .create_incarnation (
128+ incarnation = foxops_client .create_incarnation (
152129 incarnation_repository = incarnation_path ,
153130 template_repository = template_path ,
154131 template_repository_version = "main" ,
0 commit comments