From 156ddaa966ba4c9a0c4e179c66bf2fcc21df18e7 Mon Sep 17 00:00:00 2001
From: linbing <hawkerous@gmail.com>
Date: Sat, 24 Sep 2016 07:06:45 +0800
Subject: [PATCH] Force en_US language for tests

This patch forces the use of the en_US locale for tests run.
This is done to avoid tests failing due to message translation.
For example:

When asserting if the message of an exception is correct, those are
usually hardcoded in the tests.

Change-Id: Ia8068b454f1461f17994733afc57337f4b017460
---
 tox.ini | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tox.ini b/tox.ini
index da0fd3bfa..e9a8d0852 100644
--- a/tox.ini
+++ b/tox.ini
@@ -9,6 +9,8 @@ install_command = pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.opens
 setenv =
   VIRTUAL_ENV={envdir}
   OS_TEST_PATH=./ironic_python_agent/tests/unit
+  LANGUAGE=en_US
+  LC_ALL=en_US.utf-8
 deps = -r{toxinidir}/test-requirements.txt
 commands = ostestr {posargs}