mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
Fix failing tests (#166)
* Fix failing tests due to unsupported chrome * Fix multiline tweet test
This commit is contained in:
parent
52983e5813
commit
00dfb2fee4
2 changed files with 23 additions and 17 deletions
20
.travis.yml
20
.travis.yml
|
@ -24,8 +24,6 @@ jobs:
|
|||
sudo: required
|
||||
dist: bionic
|
||||
language: python
|
||||
addons:
|
||||
chrome: stable
|
||||
python:
|
||||
- 3.6
|
||||
services:
|
||||
|
@ -33,7 +31,13 @@ jobs:
|
|||
- 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
|
||||
|
@ -45,8 +49,6 @@ jobs:
|
|||
sudo: required
|
||||
dist: bionic
|
||||
language: python
|
||||
addons:
|
||||
chrome: stable
|
||||
python:
|
||||
- 3.6
|
||||
services:
|
||||
|
@ -54,7 +56,13 @@ jobs:
|
|||
- 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 .
|
||||
|
|
|
@ -28,19 +28,17 @@ invalid = [
|
|||
]
|
||||
|
||||
multiline = [
|
||||
[1102965189392113665, 'piIIowhugs',
|
||||
[1262214452826562567, 'laurenbringe_',
|
||||
"""
|
||||
summoning circle, hope this works
|
||||
|
||||
🕯
|
||||
🕯 🕯
|
||||
🕯 🕯
|
||||
|
||||
🕯 serotonin 🕯
|
||||
Summoning circle
|
||||
|
||||
🕯 🕯
|
||||
🕯 🕯
|
||||
🕯"""],
|
||||
|
||||
🕯 Serotonin 🕯
|
||||
|
||||
🕯 🕯
|
||||
🕯 🕯"""],
|
||||
|
||||
[400897186990284800, 'mobile_test_3',
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue