Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit 7f1c301

Browse files
committed
add missing unittests
1 parent a6710a5 commit 7f1c301

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_listing.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,9 @@ def setUp(self):
247247
self.base = listing.Context(listitem)
248248
self.org_routes = dispatcher.registered_routes.copy()
249249

250+
# noinspection PyUnusedLocal
250251
@route.Route.register
251-
def test_callback(_):
252+
def test_callback(_, test):
252253
pass
253254

254255
self.test_callback = test_callback
@@ -267,7 +268,7 @@ def test_container(self):
267268
"tests/test_listing/test_callback)")
268269

269270
def test_container_with_params(self):
270-
self.base.container(self.test_callback, "test label", test=True)
271+
self.base.container(self.test_callback, "test label", True, url="tester")
271272
label, command = self.base[0]
272273

273274
self.assertEqual(label, "test label")
@@ -283,7 +284,7 @@ def test_script(self):
283284
"tests/test_listing/test_callback)")
284285

285286
def test_script_with_params(self):
286-
self.base.script(self.test_callback, "test label", test=True)
287+
self.base.script(self.test_callback, "test label", True, url="tester")
287288
label, command = self.base[0]
288289

289290
self.assertEqual(label, "test label")

0 commit comments

Comments
 (0)