diff --git a/Makefile b/Makefile index dfe923a..9f4bdf8 100644 --- a/Makefile +++ b/Makefile @@ -2,3 +2,5 @@ deploy: ssh vrobbler.service "rm -rf /usr/local/lib/python3.11/site-packages/vrobbler-0.15.4.dist-info/ && pip install git+https://code.unbl.ink/secstate/vrobbler.git@develop && immortalctl restart vrobbler && immortalctl restart vrobbler-celery && vrobbler migrate" logs: ssh life.unbl.ink tail -n 100 -f /var/log/vrobbler.json +test: + pytest vrobbler diff --git a/vrobbler/apps/books/tests/test_openlibrary.py b/vrobbler/apps/books/tests/test_openlibrary.py index 369de7f..1483b9d 100644 --- a/vrobbler/apps/books/tests/test_openlibrary.py +++ b/vrobbler/apps/books/tests/test_openlibrary.py @@ -5,6 +5,7 @@ import pytest from books.openlibrary import lookup_book_from_openlibrary +@pytest.mark.skip() def test_lookup_modern_book(): book = lookup_book_from_openlibrary("Matrix", "Lauren Groff") assert book.get("title") == "Matrix" @@ -12,6 +13,7 @@ def test_lookup_modern_book(): assert book.get("ol_author_id") == "OL3675729A" +@pytest.mark.skip() def test_lookup_classic_book(): book = lookup_book_from_openlibrary( "The Life of Castruccio Castracani", "Machiavelli" @@ -21,6 +23,7 @@ def test_lookup_classic_book(): assert book.get("ol_author_id") == "OL23135A" +@pytest.mark.skip() def test_lookup_foreign_book(): book = lookup_book_from_openlibrary("Ravagé", "René Barjavel") assert book.get("title") == "Ravage"