2021-05-08 01:29:41 +00:00
|
|
|
#!/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
|
|
|
|
|
|
|
|
find tests/test_*py -type f|while read test_name
|
|
|
|
do
|
|
|
|
echo "TEST RUNNING $test_name"
|
2021-06-20 23:48:52 +00:00
|
|
|
pytest $test_name
|
2021-05-08 01:29:41 +00:00
|
|
|
done
|
2021-10-05 16:15:36 +00:00
|
|
|
|
2021-12-10 11:08:51 +00:00
|
|
|
echo "RUNNING WITH BASE_URL SET"
|
2021-10-05 16:15:36 +00:00
|
|
|
|
|
|
|
# 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
|
2021-12-10 11:08:51 +00:00
|
|
|
|