Skip to content

Commit

Permalink
Fix failing tests (#166)
Browse files Browse the repository at this point in the history
* Fix failing tests due to unsupported chrome

* Fix multiline tweet test
  • Loading branch information
setenforce0 committed May 25, 2020
1 parent 52983e5 commit 00dfb2f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
20 changes: 14 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,20 @@ jobs:
sudo: required
dist: bionic
language: python
addons:
chrome: stable
python:
- 3.6
services:
- docker
- xvfb
script:
- sudo apt update
- sudo apt install --force-yes chromium-browser chromium-chromedriver
- sudo apt install --force-yes chromium-chromedriver
- wget https://www.dropbox.com/s/ckuoaubd1crrj2k/Linux_x64_737173_chrome-linux.zip -O chrome.zip
- unzip chrome.zip
- cd chrome-linux
- sudo rm /usr/bin/google-chrome
- sudo ln -s chrome /usr/bin/google-chrome
- cd ..
- pip3 install --upgrade pip
- pip3 install -U seleniumbase pytest
- docker run -d -p 127.0.0.1:8080:8080/tcp $IMAGE_NAME:$TRAVIS_COMMIT
Expand All @@ -45,16 +49,20 @@ jobs:
sudo: required
dist: bionic
language: python
addons:
chrome: stable
python:
- 3.6
services:
- docker
- xvfb
script:
- sudo apt update
- sudo apt install --force-yes chromium-browser chromium-chromedriver
- sudo apt install --force-yes chromium-chromedriver
- wget https://www.dropbox.com/s/ckuoaubd1crrj2k/Linux_x64_737173_chrome-linux.zip -O chrome.zip
- unzip chrome.zip
- cd chrome-linux
- sudo rm /usr/bin/google-chrome
- sudo ln -s chrome /usr/bin/google-chrome
- cd ..
- pip3 install --upgrade pip
- pip3 install -U seleniumbase pytest
- docker build -t $IMAGE_NAME:$TRAVIS_COMMIT .
Expand Down
22 changes: 10 additions & 12 deletions tests/test_tweet.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,17 @@
]

multiline = [
[1102965189392113665, 'piIIowhugs',
[1262214452826562567, 'laurenbringe_',
"""
summoning circle, hope this works
πŸ•―
πŸ•― πŸ•―
πŸ•― πŸ•―
πŸ•― serotonin πŸ•―
πŸ•― πŸ•―
πŸ•― πŸ•―
πŸ•―"""],
Summoning circle
πŸ•― πŸ•―
πŸ•― πŸ•―
πŸ•― Serotonin πŸ•―
πŸ•― πŸ•―
πŸ•― πŸ•―"""],

[400897186990284800, 'mobile_test_3',
"""
Expand Down

0 comments on commit 00dfb2f

Please sign in to comment.