-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor magstats to fast api #173
base: main
Are you sure you want to change the base?
Conversation
COPY ./entrypoint.sh /app/ | ||
COPY ./core /app/core | ||
COPY ./api /app/api | ||
COPY ./database /app/database |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
El path acá no está correcto
magstats/tests/test_service.py
Outdated
class TestGetMagstatsSQL(unittest.TestCase): | ||
def test_db_exception(self): | ||
def mock_session_factory_with_exception(): | ||
raise Exception("Test exception") | ||
|
||
with pytest.raises(HTTPException) as exc: | ||
get_magstats( | ||
session_factory=mock_session_factory_with_exception, | ||
oid="oid1", | ||
handle_error=handle_error, | ||
) | ||
|
||
assert exc.value.status_code == 500 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Por qué poner esto en una clase y los demás tests no ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
También veo que falta la parte de CD. Sin eso no tiene mucho sentido aprobar el PR.
No description provided.