@@ -126,10 +126,10 @@ def mock_unique_name_in_devfile(init: Init) -> str:
126
126
result = capsys .readouterr ().out
127
127
128
128
# check stdout
129
- assert re .search ("Note: collection project created" , result ) is not None
129
+ assert re .search (r "Note: collection project created" , result ) is not None
130
130
131
131
# recursively assert files created
132
- cmp = dircmp (str (tmp_path ), str (FIXTURES_DIR / "collection" ))
132
+ cmp = dircmp (str (tmp_path ), str (FIXTURES_DIR / "collection" ), ignore = [ ".DS_Store" ] )
133
133
diff = has_differences (dcmp = cmp , errors = [])
134
134
assert diff == [], diff
135
135
@@ -152,12 +152,12 @@ def mock_unique_name_in_devfile(init: Init) -> str:
152
152
result = capsys .readouterr ().out
153
153
assert (
154
154
re .search (
155
- "already exists" ,
155
+ r "already exists" ,
156
156
result ,
157
157
)
158
158
is not None
159
159
), result
160
- assert re .search ("Note: collection project created at" , result ) is not None , result
160
+ assert re .search (r "Note: collection project created at" , result ) is not None , result
161
161
162
162
# override existing collection with force=true
163
163
cli_args ["force" ] = True
@@ -166,7 +166,7 @@ def mock_unique_name_in_devfile(init: Init) -> str:
166
166
)
167
167
init .run ()
168
168
result = capsys .readouterr ().out
169
- assert re .search ("Warning: re-initializing existing directory" , result ) is not None , result
169
+ assert re .search (r "Warning: re-initializing existing directory" , result ) is not None , result
170
170
171
171
172
172
def test_run_success_ansible_project (
@@ -209,7 +209,7 @@ def mock_unique_name_in_devfile(init: Init) -> str:
209
209
result = capsys .readouterr ().out
210
210
211
211
# check stdout
212
- assert re .search ("Note: playbook project created" , result ) is not None
212
+ assert re .search (r "Note: playbook project created" , result ) is not None
213
213
214
214
# recursively assert files created
215
215
cmp = dircmp (
@@ -238,12 +238,12 @@ def mock_unique_name_in_devfile(init: Init) -> str:
238
238
result = capsys .readouterr ().out
239
239
assert (
240
240
re .search (
241
- "already exists" ,
241
+ r "already exists" ,
242
242
result ,
243
243
)
244
244
is not None
245
245
), result
246
- assert re .search ("Note: playbook project created at" , result ) is not None , result
246
+ assert re .search (r "Note: playbook project created at" , result ) is not None , result
247
247
248
248
# override existing playbook directory with force=true
249
249
cli_args ["force" ] = True
@@ -252,7 +252,7 @@ def mock_unique_name_in_devfile(init: Init) -> str:
252
252
)
253
253
init .run ()
254
254
result = capsys .readouterr ().out
255
- assert re .search ("Warning: re-initializing existing directory" , result ) is not None , result
255
+ assert re .search (r "Warning: re-initializing existing directory" , result ) is not None , result
256
256
257
257
258
258
def test_run_success_collections_alt_dir (
0 commit comments