💚 Fix tests (final pass)
This commit is contained in:
1 parent
f489f4ffd1
commit
c7afd7951c
2 files changed
-30
No files matched your search
@@ -137,10 +137,6 @@ def normalize_command_handler_result(command, handler_results, tags_to_add=None)
|
||||
# entry is None, we'll ignore that entry and continue
|
||||
continue
|
||||
|
||||
if command.tags:
|
||||
# copy the tags
|
||||
tags = set(command.tags)
|
||||
|
||||
def expand_tags(tags, tags_to_add):
|
||||
tags = tags.copy()
|
||||
if tags_to_add and isinstance(tags_to_add, set):
|
||||
|
||||
@@ -408,32 +408,6 @@ class PrinterInterface(object):
|
||||
|
||||
return False
|
||||
|
||||
def select_file(self, path, sd, printAfterSelect=False, pos=None, tags=None, *args, **kwargs):
|
||||
"""
|
||||
Selects the specified ``path`` for printing, specifying if the file is to be found on the ``sd`` or not.
|
||||
Optionally can also directly start the print after selecting the file.
|
||||
|
||||
Arguments:
|
||||
path (str): The path to select for printing. Either an absolute path or relative path to a local file in
|
||||
the uploads folder or a filename on the printer's SD card.
|
||||
sd (boolean): Indicates whether the file is on the printer's SD card or not.
|
||||
printAfterSelect (boolean): Indicates whether a print should be started
|
||||
after the file is selected.
|
||||
tags (set of str): An optional set of tags to attach to the command(s) throughout their lifecycle
|
||||
|
||||
Raises:
|
||||
InvalidFileType: if the file is not a machinecode file and hence cannot be printed
|
||||
InvalidFileLocation: if an absolute path was provided and not contained within local storage or
|
||||
doesn't exist
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def unselect_file(self, *args, **kwargs):
|
||||
"""
|
||||
Unselects and currently selected file.
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def start_print(self, tags=None, pos=None, *args, **kwargs):
|
||||
"""
|
||||
Starts printing the currently selected file. If no file is currently selected, does nothing.
|
||||
|
||||
Reference in new issue
Block a user