Skip to content

Commit 149ae5e

Browse files
jecarrKadeMorton
authored andcommitted
1 parent 3c43733 commit 149ae5e

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

spindle

tests/test_reports.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,7 @@ async def test_adding_report_categories_auto_add(self):
502502
report_id, report_title = str(uuid4()), "Auto-Add Categories to Me!"
503503
await self.submit_test_report(dict(uid=report_id, title=report_title, url="auto.add.categories"))
504504

505-
data = dict(
506-
index="set_report_keywords", report_title=report_title, victims=dict(category=["rockets"])
507-
)
505+
data = dict(index="set_report_keywords", report_title=report_title, victims=dict(category=["rockets"]))
508506
resp = await self.client.post("/rest", json=data)
509507
self.assertTrue(resp.status < 300, msg="Adding categories resulted in a non-200 response.")
510508

tests/thread_app_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ async def setUpAsync(self):
154154
uid="aa000001",
155155
selected="rockets",
156156
auto_add="aerospace",
157-
)
157+
),
158158
)
159159

160160
# Carry out pre-launch tasks except for prepare_queue(): replace the call of this to return (and do) nothing

threadcomponents/service/data_svc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,7 @@ async def insert_category_entry(self, keyname, entry, display_name, current_cate
354354
)
355355

356356
for rm_auto_selected_category in to_delete:
357-
await self.dao.delete(
358-
"categories_auto_add", dict(selected=keyname, auto_add=rm_auto_selected_category)
359-
)
357+
await self.dao.delete("categories_auto_add", dict(selected=keyname, auto_add=rm_auto_selected_category))
360358

361359
async def insert_keyword_json_data(self, buildfile=os.path.join("spindle", "cta_names_mappings.json")):
362360
"""Function to read in the keywords json file and insert data into the database."""

0 commit comments

Comments
 (0)