Skip to content

Commit 75d7f05

Browse files
authored
Merge pull request #384 from plotly/chore/fix-locale-in-test
Enforce a locale for cell formatting test
2 parents 798c8e1 + 878d51f commit 75d7f05

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

tests/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import os
2+
import pytest
3+
4+
5+
@pytest.fixture
6+
def enforced_locale():
7+
# Forces Chrome to use the `en-US` locale for tests, overriding any user-specified locale
8+
os.environ["LANGUAGE"] = "en-US"

tests/test_cell_data_type_override.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from dash import Dash, html
55
from . import utils
66

7-
def test_cd001_cell_data_types_override(dash_duo):
7+
def test_cd001_cell_data_types_override(enforced_locale, dash_duo):
88
app = Dash(__name__)
99

1010
rowData = [

0 commit comments

Comments
 (0)