Skip to content

Commit cea3940

Browse files
Fix multiline spacing.
1 parent 112b734 commit cea3940

File tree

1 file changed

+92
-92
lines changed

1 file changed

+92
-92
lines changed

tests/unit/ctl/test_repository_app.py

Lines changed: 92 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -70,30 +70,30 @@ def test_repo_no_username(self, mock_init_client, mock_client) -> None:
7070
mock_client.execute_graphql.assert_called_once()
7171
mock_client.execute_graphql.assert_called_with(
7272
query="""
73-
mutation {
74-
CoreRepositoryCreate(
75-
data: {
76-
name: {
77-
value: "Gitlab"
78-
}
79-
location: {
80-
value: "https://gitlab.com/FragmentedPacket/nautobot-plugin-ansible-filters.git"
81-
}
82-
description: {
83-
value: ""
84-
}
85-
commit: {
86-
value: ""
87-
}
88-
credential: {
89-
id: "1234"
90-
}
91-
}
92-
){
93-
ok
94-
}
73+
mutation {
74+
CoreRepositoryCreate(
75+
data: {
76+
name: {
77+
value: "Gitlab"
9578
}
96-
""",
79+
location: {
80+
value: "https://gitlab.com/FragmentedPacket/nautobot-plugin-ansible-filters.git"
81+
}
82+
description: {
83+
value: ""
84+
}
85+
commit: {
86+
value: ""
87+
}
88+
credential: {
89+
id: "1234"
90+
}
91+
}
92+
){
93+
ok
94+
}
95+
}
96+
""",
9797
branch_name="main",
9898
tracker="mutation-repository-create",
9999
)
@@ -131,30 +131,30 @@ def test_repo_username(self, mock_init_client, mock_client) -> None:
131131
mock_client.execute_graphql.assert_called_once()
132132
mock_client.execute_graphql.assert_called_with(
133133
query="""
134-
mutation {
135-
CoreRepositoryCreate(
136-
data: {
137-
name: {
138-
value: "Gitlab"
139-
}
140-
location: {
141-
value: "https://gitlab.com/FragmentedPacket/nautobot-plugin-ansible-filters.git"
142-
}
143-
description: {
144-
value: ""
145-
}
146-
commit: {
147-
value: ""
148-
}
149-
credential: {
150-
id: "1234"
151-
}
152-
}
153-
){
154-
ok
155-
}
134+
mutation {
135+
CoreRepositoryCreate(
136+
data: {
137+
name: {
138+
value: "Gitlab"
139+
}
140+
location: {
141+
value: "https://gitlab.com/FragmentedPacket/nautobot-plugin-ansible-filters.git"
142+
}
143+
description: {
144+
value: ""
145+
}
146+
commit: {
147+
value: ""
148+
}
149+
credential: {
150+
id: "1234"
156151
}
157-
""",
152+
}
153+
){
154+
ok
155+
}
156+
}
157+
""",
158158
branch_name="main",
159159
tracker="mutation-repository-create",
160160
)
@@ -191,30 +191,30 @@ def test_repo_readonly_true(self, mock_init_client, mock_client) -> None:
191191
mock_client.execute_graphql.assert_called_once()
192192
mock_client.execute_graphql.assert_called_with(
193193
query="""
194-
mutation {
195-
CoreReadOnlyRepositoryCreate(
196-
data: {
197-
name: {
198-
value: "Gitlab"
199-
}
200-
location: {
201-
value: "https://gitlab.com/FragmentedPacket/nautobot-plugin-ansible-filters.git"
202-
}
203-
description: {
204-
value: ""
205-
}
206-
commit: {
207-
value: ""
208-
}
209-
credential: {
210-
id: "1234"
211-
}
212-
}
213-
){
214-
ok
215-
}
194+
mutation {
195+
CoreReadOnlyRepositoryCreate(
196+
data: {
197+
name: {
198+
value: "Gitlab"
216199
}
217-
""",
200+
location: {
201+
value: "https://gitlab.com/FragmentedPacket/nautobot-plugin-ansible-filters.git"
202+
}
203+
description: {
204+
value: ""
205+
}
206+
commit: {
207+
value: ""
208+
}
209+
credential: {
210+
id: "1234"
211+
}
212+
}
213+
){
214+
ok
215+
}
216+
}
217+
""",
218218
branch_name="main",
219219
tracker="mutation-repository-create",
220220
)
@@ -258,30 +258,30 @@ def test_repo_description_commit_branch(self, mock_init_client, mock_client) ->
258258
mock_client.execute_graphql.assert_called_once()
259259
mock_client.execute_graphql.assert_called_with(
260260
query="""
261-
mutation {
262-
CoreRepositoryCreate(
263-
data: {
264-
name: {
265-
value: "Gitlab"
266-
}
267-
location: {
268-
value: "https://gitlab.com/FragmentedPacket/nautobot-plugin-ansible-filters.git"
269-
}
270-
description: {
271-
value: "This is a test description"
272-
}
273-
commit: {
274-
value: "myHashCommit"
275-
}
276-
credential: {
277-
id: "1234"
278-
}
279-
}
280-
){
281-
ok
282-
}
261+
mutation {
262+
CoreRepositoryCreate(
263+
data: {
264+
name: {
265+
value: "Gitlab"
266+
}
267+
location: {
268+
value: "https://gitlab.com/FragmentedPacket/nautobot-plugin-ansible-filters.git"
269+
}
270+
description: {
271+
value: "This is a test description"
272+
}
273+
commit: {
274+
value: "myHashCommit"
275+
}
276+
credential: {
277+
id: "1234"
283278
}
284-
""",
279+
}
280+
){
281+
ok
282+
}
283+
}
284+
""",
285285
branch_name="develop",
286286
tracker="mutation-repository-create",
287287
)

0 commit comments

Comments
 (0)