File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,6 @@ def resolve_labels(package_dict: dict) -> int:
69
69
70
70
if "success" not in updated_labels :
71
71
log .warning ("Error updating labels: %s" , updated_labels )
72
- if updated_labels ["success" ].isnumeric ():
73
- if not (len (translation_list ) == int (updated_labels ["success" ])):
74
- log .warning (
75
- "Of %d labels, only %s updated successfully" ,
76
- len (translation_list ),
77
- updated_labels ["success" ],
78
- )
79
72
else :
80
73
log .debug ("Updated %s labels in database" , updated_labels ["success" ])
81
74
return len (translation_list )
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def test_resolve_label_happy_flow(
121
121
]
122
122
123
123
load_and_translate_uri .return_value = translation_list
124
- get_action .return_value .return_value = {"success" : "3" }
124
+ get_action .return_value .return_value = {"success" : "3 updated succesfully " }
125
125
126
126
assert resolve_labels ({"theme" : "http://www.wikidata.org/entity/Q29937289" }) == 3
127
127
You can’t perform that action at this time.
0 commit comments