kopia lustrzana https://github.com/dgtlmoon/changedetection.io
31 wiersze
853 B
Bash
31 wiersze
853 B
Bash
![]() |
#!/bin/bash
|
||
|
|
||
|
|
||
|
# live_server will throw errors even with live_server_scope=function if I have the live_server setup in different functions
|
||
|
# and I like to restart the server for each test (and have the test cleanup after each test)
|
||
|
# merge request welcome :)
|
||
|
|
||
|
|
||
|
# exit when any command fails
|
||
|
set -e
|
||
|
|
||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||
|
|
||
|
find tests/test_*py -type f|while read test_name
|
||
|
do
|
||
|
echo "TEST RUNNING $test_name"
|
||
|
pytest $test_name
|
||
|
done
|
||
|
|
||
|
echo "RUNNING WITH BASE_URL SET"
|
||
|
|
||
|
# Now re-run some tests with BASE_URL enabled
|
||
|
# Re #65 - Ability to include a link back to the installation, in the notification.
|
||
|
export BASE_URL="https://really-unique-domain.io"
|
||
|
pytest tests/test_notification.py
|
||
|
|
||
|
|
||
|
# Re-run with HIDE_REFERER set - could affect login
|
||
|
export HIDE_REFERER=True
|
||
|
pytest tests/test_access_control.py
|