<filename>tests/test_probabilities.py
from fixtures import client


def test_get_probabilities(psql_service, client):
    r = client.get("objects/ZTF1/probabilities")
    assert r.status_code == 200
    assert isinstance(r.json, list)


def test_get_probabilities_not_found(psql_service, client):
    r = client.get("objects/ZTF2/probabilities")
    assert r.status_code == 404

<filename>tests/test_probabilities.py
from fixtures import client


def test_get_probabilities(psql_service, client):
    r = client.get("objects/ZTF1/probabilities")
    assert r.status_code == 200
    assert isinstance(r.json, list)


def test_get_probabilities_not_found(psql_service, client):
    r = client.get("objects/ZTF2/probabilities")
    assert r.status_code == 404
