5 use lib 'modules/fallback';
7 unshift @INC, 'modules/override';
10 use Support::TestSetup;
11 use Test::More tests => 2;
18 Support::TestSetup::login();
20 open my $fh, '<', 't/request/post_multipart_1' or die "can't load test";
21 my $data = do { $/ = undef; <$fh> };
26 local $ENV{CONTENT_TYPE} = 'multipart/form-data; boundary=---------------------------23281168279961';
27 SL::Request::_parse_multipart_formdata($t, $tt, $data);
30 my $blob = Encode::encode('utf-8', qq|\x{feff}Stunde;Montag;Dienstag;Mittwoch;Donnerstag;Freitag
31 1;Mathe;Deutsch;Englisch;Mathe;Kunst
32 2;Sport;Französisch;Geschichte;Sport;Geschichte
33 3;Sport;"Religion ev;kath";Kunst;;Kunst|);
40 'quote_char' => undef,
42 'custom_sep_char' => undef,
45 'article_number_policy' => undef,
46 'sellprice_places' => undef,
48 'apply_buchungsgruppe' => undef,
49 'full_preview' => undef,
51 'default_unit' => undef,
52 'default_buchungsgruppe' => undef,
53 'duplicates' => undef,
54 'numberformat' => undef,
55 'sellprice_adjustment_type' => undef,
56 'shoparticle_if_missing' => undef,
57 'sellprice_adjustment' => undef
59 'custom_escape_char' => undef,
60 'action_test' => undef,
61 'custom_quote_char' => undef,
62 'escape_char' => undef,
65 $t_cmp->{ATTACHMENTS}{file}{data} = \$t_cmp->{'file'};
77 'quote_char' => 'quote',
78 'custom_sep_char' => '',
79 'sep_char' => 'semicolon',
81 'article_number_policy' => 'update_prices',
82 'sellprice_places' => 2,
84 'apply_buchungsgruppe' => 'all',
85 'full_preview' => '0',
86 'part_type' => 'part',
87 'default_unit' => 'g',
88 'default_buchungsgruppe' => '815',
89 'duplicates' => 'no_check',
90 'numberformat' => '1.000,00',
91 'sellprice_adjustment_type' => 'percent',
92 'shoparticle_if_missing' => '0',
93 'sellprice_adjustment' =>'0'
95 'custom_escape_char' => '',
96 'action_test' => 'Test und Vorschau',
99 'filename' => 'from_wikipedia.csv'
102 'custom_quote_char' => '',
103 'escape_char' => 'quote',
104 'action' => 'CsvImport/dispatch',
105 'FILENAME' => 'from_wikipedia.csv'