aboutsummaryrefslogtreecommitdiff
path: root/.github/prtester.py
diff options
context:
space:
mode:
authorGravatar Bocki <henning@bocklage.com> 2022-04-05 12:17:19 +0200
committerGravatar GitHub <noreply@github.com> 2022-04-05 12:17:19 +0200
commit91c6645fc711fe35bd753882e4abbbc9a6a8b9a0 (patch)
tree18fafc8a79c2e6a9465d95fd0a35e1d3a1afc978 /.github/prtester.py
parent780581939a883b80b3f6db01ac43e09b83e0e795 (diff)
downloadrss-bridge-91c6645fc711fe35bd753882e4abbbc9a6a8b9a0.tar.gz
rss-bridge-91c6645fc711fe35bd753882e4abbbc9a6a8b9a0.tar.zst
rss-bridge-91c6645fc711fe35bd753882e4abbbc9a6a8b9a0.zip
[core] fix testing changes (#2607)
Diffstat (limited to '.github/prtester.py')
-rw-r--r--.github/prtester.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/prtester.py b/.github/prtester.py
index 22a98ff1..080d7d26 100644
--- a/.github/prtester.py
+++ b/.github/prtester.py
@@ -3,8 +3,6 @@ from bs4 import BeautifulSoup
from datetime import datetime
import os.path
-from soupsieve import select
-
# This script is specifically written to be used in automation for https://github.com/RSS-Bridge/rss-bridge
#
# This will scrape the whitelisted bridges in the current state (port 3000) and the PR state (port 3001) of
@@ -89,7 +87,11 @@ with open(os.getcwd() + '/comment.txt', 'w+') as file:
| ---- | ------ |''')
for status in gitstatus: # run this twice, once for the current version, once for the PR version
- URL = "http://192.168.178.102:3001"
+ if status == "current":
+ port = "3000" # both ports are defined in the corresponding workflow .yml file
+ elif status == "pr":
+ port = "3001"
+ URL = "http://localhost:" + port
page = requests.get(URL) # Use python requests to grab the rss-bridge main page
soup = BeautifulSoup(page.content, "html.parser") # use bs4 to turn the page into soup
bridges = soup.find_all("section") # get a soup-formatted list of all bridges on the rss-bridge page