We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68ed213 + 976929d commit 4c1d6aeCopy full SHA for 4c1d6ae
1 file changed
test/test_stock.py
@@ -209,9 +209,9 @@ def test_bulk_delete(self):
209
self.assertTrue(len(StockItem.list(self.api, location=3)) >= 10)
210
211
# Delete *all* items from location 3
212
- StockItem.bulkDelete(self.api, filters={
213
- 'location': 3
214
- })
+ items = [item.pk for item in StockItem.list(self.api, location=3)]
+
+ StockItem.bulkDelete(self.api, items=list(items))
215
216
loc = StockLocation(self.api, pk=3)
217
items = loc.getStockItems()
0 commit comments