test(python): adding python integration test

This commit is contained in:
Scott Lyons 2024-08-21 08:38:23 -07:00
commit 4d71a44fcd
5 changed files with 609 additions and 0 deletions

9
tests/python-sync/test.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
set -e
pip uninstall -y szurubooru_client || true
pip install -r requirements.txt
maturin develop -F python -m ../../szurubooru-client/Cargo.toml
docker compose down
docker compose up -d
python test.py && docker compose down