def test_get_one(db_base):
with pytest.raises(DbException) as excinfo:
db_base.get_one(None, None, None, None)
assert str(excinfo.value).startswith(exception_message("Method 'get_one' not implemented"))
assert excinfo.value.http_code == http.HTTPStatus.NOT_FOUND
def test_get_one(db_base):
with pytest.raises(DbException) as excinfo:
db_base.get_one(None, None, None, None)
assert str(excinfo.value).startswith(exception_message("Method 'get_one' not implemented"))
assert excinfo.value.http_code == http.HTTPStatus.NOT_FOUND