|
41 | 41 | PluginTestCase, |
42 | 42 | TerminalImportMixin, |
43 | 43 | ) |
44 | | -from beets.util import displayable_path, syspath |
| 44 | +from beets.util import PromptChoice, displayable_path, syspath |
45 | 45 |
|
46 | 46 |
|
47 | 47 | class TestPluginRegistration(PluginTestCase): |
@@ -292,8 +292,8 @@ def __init__(self): |
292 | 292 |
|
293 | 293 | def return_choices(self, session, task): |
294 | 294 | return [ |
295 | | - ui.commands.PromptChoice("f", "Foo", None), |
296 | | - ui.commands.PromptChoice("r", "baR", None), |
| 295 | + PromptChoice("f", "Foo", None), |
| 296 | + PromptChoice("r", "baR", None), |
297 | 297 | ] |
298 | 298 |
|
299 | 299 | self.register_plugin(DummyPlugin) |
@@ -328,8 +328,8 @@ def __init__(self): |
328 | 328 |
|
329 | 329 | def return_choices(self, session, task): |
330 | 330 | return [ |
331 | | - ui.commands.PromptChoice("f", "Foo", None), |
332 | | - ui.commands.PromptChoice("r", "baR", None), |
| 331 | + PromptChoice("f", "Foo", None), |
| 332 | + PromptChoice("r", "baR", None), |
333 | 333 | ] |
334 | 334 |
|
335 | 335 | self.register_plugin(DummyPlugin) |
@@ -363,10 +363,10 @@ def __init__(self): |
363 | 363 |
|
364 | 364 | def return_choices(self, session, task): |
365 | 365 | return [ |
366 | | - ui.commands.PromptChoice("a", "A foo", None), # dupe |
367 | | - ui.commands.PromptChoice("z", "baZ", None), # ok |
368 | | - ui.commands.PromptChoice("z", "Zupe", None), # dupe |
369 | | - ui.commands.PromptChoice("z", "Zoo", None), |
| 366 | + PromptChoice("a", "A foo", None), # dupe |
| 367 | + PromptChoice("z", "baZ", None), # ok |
| 368 | + PromptChoice("z", "Zupe", None), # dupe |
| 369 | + PromptChoice("z", "Zoo", None), |
370 | 370 | ] # dupe |
371 | 371 |
|
372 | 372 | self.register_plugin(DummyPlugin) |
@@ -399,7 +399,7 @@ def __init__(self): |
399 | 399 | ) |
400 | 400 |
|
401 | 401 | def return_choices(self, session, task): |
402 | | - return [ui.commands.PromptChoice("f", "Foo", self.foo)] |
| 402 | + return [PromptChoice("f", "Foo", self.foo)] |
403 | 403 |
|
404 | 404 | def foo(self, session, task): |
405 | 405 | pass |
@@ -441,7 +441,7 @@ def __init__(self): |
441 | 441 | ) |
442 | 442 |
|
443 | 443 | def return_choices(self, session, task): |
444 | | - return [ui.commands.PromptChoice("f", "Foo", self.foo)] |
| 444 | + return [PromptChoice("f", "Foo", self.foo)] |
445 | 445 |
|
446 | 446 | def foo(self, session, task): |
447 | 447 | return Action.SKIP |
|
0 commit comments