Follow-up to 0cbbe96: remove input_filename from unit tests

This commit is contained in:
Lukas Matena 2023-09-13 08:18:07 +02:00
parent 8d9d349af9
commit 7dcad1a035

View File

@ -1,4 +1,4 @@
use Test::More tests => 23; use Test::More tests => 22;
use strict; use strict;
use warnings; use warnings;
@ -185,13 +185,14 @@ use Slic3r::Test;
} }
} }
{ #{
my $config = Slic3r::Config::new_from_defaults; # [input_filename] placeholder was removed in 0cbbe96.
$config->set('start_gcode', 'START:[input_filename]'); # my $config = Slic3r::Config::new_from_defaults;
my $print = Slic3r::Test::init_print('20mm_cube', config => $config); # $config->set('start_gcode', 'START:[input_filename]');
my $gcode = Slic3r::Test::gcode($print); # my $print = Slic3r::Test::init_print('20mm_cube', config => $config);
like $gcode, qr/START:20mm_cube/, '[input_filename] is also available in custom G-code'; # my $gcode = Slic3r::Test::gcode($print);
} # like $gcode, qr/START:20mm_cube/, '[input_filename] is also available in custom G-code';
#}
# The current Spiral Vase slicing code removes the holes and all but the largest contours from each slice, # The current Spiral Vase slicing code removes the holes and all but the largest contours from each slice,
# therefore the following test is no more valid. # therefore the following test is no more valid.