Skip to content

Commit

Permalink
Test: Set explicit message locale to C to be able to match error mess…
Browse files Browse the repository at this point in the history
…ages when not running in english environments (#711)
  • Loading branch information
nicomen authored Oct 30, 2024
1 parent aac1207 commit fcc82a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/Shutter/Draw/001_update_warning_text.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ use Locale::gettext;
use Test::More;
use Test::MockModule;

use POSIX qw(locale_h);
use locale;
setlocale(LC_MESSAGES, 'C'); # Allow non-English developers to match error messages

require_ok('Shutter::Draw::DrawingTool');

my $mock = Test::MockModule->new("Shutter::Draw::DrawingTool");
Expand Down

0 comments on commit fcc82a9

Please sign in to comment.