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

Move validation #79

Closed
wants to merge 4 commits into from
Closed

Move validation #79

wants to merge 4 commits into from

Conversation

folix-01
Copy link
Member

No description provided.

@folix-01 folix-01 requested review from mamico and cekk August 25, 2023 14:08
@coveralls
Copy link

Pull Request Test Coverage Report for Build 5977388270

  • 3 of 4 (75.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.005%) to 70.099%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/redturtle/prenotazioni/adapters/conflict.py 3 4 75.0%
Totals Coverage Status
Change from base Build 5976193227: 0.005%
Covered Lines: 2764
Relevant Lines: 3943

💛 - Coveralls

@folix-01 folix-01 closed this Aug 28, 2023
Copy link
Member

@cekk cekk left a comment

Choose a reason for hiding this comment

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

Il changelog dov'è??

try:
booker.move(booking=booking, data=data)
except BookerException as e:
raise BadRequest(str(e))
Copy link
Member

Choose a reason for hiding this comment

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

Io faccio così di solito:

except BookerException as e:
            raise BadRequest(e.args[0])

Cosa preferisci?

},
)

self.assertEqual(response.status_code, 400)
Copy link
Member

Choose a reason for hiding this comment

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

metti anche un check sul messaggio di errore, che potrebbe anche dare 400 per un altro motivo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants