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

New delete case endpoint #14

Merged
merged 6 commits into from
Mar 15, 2023
Merged

New delete case endpoint #14

merged 6 commits into from
Mar 15, 2023

Conversation

marta197
Copy link
Contributor

@marta197 marta197 commented Mar 8, 2023

Case

We needed to create an endpoint to delete template test cases (in case we wrote a wrong ID, or something).

Proposed solution

We created an endpoint with a delete method to delete the specified template case.

@marta197 marta197 added the enhancement New feature or request label Mar 8, 2023
@github-actions
Copy link

github-actions bot commented Mar 13, 2023

Tests Skipped Failures Errors Time
106 6 💤 0 ❌ 0 🔥 1m 54s ⏱️

Copy link
Member

@vokimon vokimon left a comment

Choose a reason for hiding this comment

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

This helper is used to assert in test, doing this change is like faking the assert to be always true. You should either pick as fixture a new template that has no en_US translation, or adding en_US as supported traslation as previous version of the PR did but then change the unsupported language in test__save_template__bodyTranslation_cloneExistingUnsupported to be other than en_US

tests/test_erp_service.py Outdated Show resolved Hide resolved
marta197 and others added 3 commits March 15, 2023 09:06
For bodies, not for subjects, language is managed
by the mako code, so whichever translation exist
it must be written with the code we have.
@sonarcloud
Copy link

sonarcloud bot commented Mar 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@marta197 marta197 merged commit de43c88 into main Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants