Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Chrome
run: sudo apt-get install -y google-chrome-stable
- name: Install Selenium
run: |
mkdir bin
curl -O https://chromedriver.storage.googleapis.com/`curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip
unzip chromedriver_linux64.zip -d bin
curl -LsSfO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb || sudo apt-get -f install -y
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def random_name(n):
@pytest.fixture(scope="session")
def driver():
chrome_options = webdriver.ChromeOptions()
chrome_options.headless = True
chrome_options.add_argument("--headless=new")
try:
b = webdriver.Chrome(options=chrome_options)
except WebDriverException as e:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def test_lang_attr(self):

# Regression test for #163
widget = Select2Widget()
assert widget.i18n_name == "en"
with translation.override("en"):
assert widget.i18n_name == "en"
with translation.override("de"):
assert widget.i18n_name == "de"

Expand Down
Loading