Skip to content
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

[16.0][MIG] connector_ertransit #356

Merged
merged 10 commits into from
Mar 25, 2024
Merged

[16.0][MIG] connector_ertransit #356

merged 10 commits into from
Mar 25, 2024

Conversation

KNVx
Copy link
Contributor

@KNVx KNVx commented Jan 4, 2024

No description provided.

@KNVx KNVx mentioned this pull request Jan 4, 2024
10 tasks
@KNVx KNVx requested a review from eantones January 9, 2024 07:30
Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Attention: Patch coverage is 30.40936% with 119 lines in your changes are missing coverage. Please review.

Project coverage is 29.09%. Comparing base (3f1b28c) to head (31e503a).

❗ Current head 31e503a differs from pull request most recent head 70f0344. Consider uploading reports for the commit 70f0344 to get more accurate results

Files Patch % Lines
connector_ertransit/models/ertransit.py 20.22% 71 Missing ⚠️
connector_ertransit/controllers/main.py 20.00% 36 Missing ⚠️
connector_ertransit/models/backend.py 62.50% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             16.0     #356      +/-   ##
==========================================
+ Coverage   28.95%   29.09%   +0.14%     
==========================================
  Files          44       50       +6     
  Lines        1568     1739     +171     
  Branches      360      395      +35     
==========================================
+ Hits          454      506      +52     
- Misses       1113     1232     +119     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

if not er.login():
raise exceptions.ValidationError("Error on logging in")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use just ValidationError("Error on logging in") without exceptions

@@ -25,37 +24,43 @@ def _select_state(self):
("production", "In Production"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the indentation

if not er.login():
raise exceptions.ValidationError("Error on logging in")

raise exceptions.ValidationError(_("Error on logging in"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

if not er.logout():
raise exceptions.ValidationError("Error on logging out")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

if not er.logout():
raise exceptions.ValidationError("Error on logging out")

raise exceptions.ValidationError(_("Error on logging out"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@@ -147,14 +144,16 @@ def _update_javax_faces_viewstate(self, res):
for t in tag_javax:
if "value" not in t.attrib:
raise Exception(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ValidationError

@@ -147,14 +144,16 @@ def _update_javax_faces_viewstate(self, res):
for t in tag_javax:
if "value" not in t.attrib:
raise Exception(
"Unexpected, the javax.faces.ViewState element if found must have value attribute"
"Unexpected, the javax.faces.ViewState element "
"if found must have value attribute"
)
if not self.javax_face_viewstate:
self.javax_face_viewstate = t.attrib["value"]
else:
if self.javax_face_viewstate != t.attrib["value"]:
raise Exception(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ValidationError

@KNVx KNVx force-pushed the 16.0-mig-connector_ertransit branch from 15006ea to a8fbefc Compare January 9, 2024 10:22
@KNVx KNVx requested a review from eantones January 9, 2024 10:25
@KNVx KNVx force-pushed the 16.0-mig-connector_ertransit branch from a8fbefc to 31e503a Compare January 19, 2024 09:17
@eantones eantones force-pushed the 16.0-mig-connector_ertransit branch from 31e503a to 70f0344 Compare March 25, 2024 11:57
@eantones eantones merged commit d9baabe into 16.0 Mar 25, 2024
4 checks passed
@eantones eantones deleted the 16.0-mig-connector_ertransit branch March 25, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants