@@ -204,9 +204,8 @@ def test_upsert_modelcard_update_existing(read_text, glob, load, push_to_hub, pr
204
204
load .assert_called_once_with (repo_id )
205
205
206
206
card = load .return_value
207
- retained_project_list_content = (
208
- "dummy-en Dummy English dummy en"
209
- )
207
+ retained_project_list_content = "dummy-en Dummy English dummy en "
208
+
210
209
assert retained_project_list_content in card .text
211
210
assert sorted (card .data .language ) == ["en" , "fi" ]
212
211
card .push_to_hub .assert_called_once_with (
@@ -227,8 +226,8 @@ def test_update_modelcard_projects_section_append_new():
227
226
<!--- start-of-autoupdating-part --->
228
227
## Projects
229
228
```
230
- Project ID Project Name Vocabulary ID Language
231
- --------------------------------------------------------------------
229
+ Project ID Project Name Vocabulary ID Language
230
+ -------------------------------------------------
232
231
```
233
232
<!--- end-of-autoupdating-part --->"""
234
233
@@ -250,8 +249,8 @@ def test_update_modelcard_projects_section_update_existing():
250
249
<!--- start-of-autoupdating-part --->
251
250
## Projects
252
251
```
253
- Project ID Project Name Vocabulary ID Language
254
- --------------------------------------------------------------------
252
+ Project ID Project Name Vocabulary ID Language
253
+ -------------------------------------------------
255
254
```
256
255
<!--- end-of-autoupdating-part --->\n """
257
256
@@ -266,9 +265,9 @@ def test_update_modelcard_projects_section_update_existing():
266
265
<!--- start-of-autoupdating-part --->
267
266
## Projects
268
267
```
269
- Project ID Project Name Vocabulary ID Language
270
- --------------------------------------------------------------------
271
- dummy-fi Dummy Finnish dummy fi \n ```
268
+ Project ID Project Name Vocabulary ID Language
269
+ --------------------------------------------------
270
+ dummy-fi Dummy Finnish dummy fi \n ```
272
271
<!--- end-of-autoupdating-part --->
273
272
"""
274
273
0 commit comments