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

LTD-5702: Update goods endpoint tests #2327

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

saruniitr
Copy link
Contributor

Aim

LTD-

| id | 03fb08eb-1564-4b68-9336-3ca8906543f9 |
When the application is submitted
And the application is issued at 2024-11-22T13:35:15
Then the `destinations` table has the following rows:
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel this test isn’t really telling a reader anything about how these values are getting set, they just sort of seem to appear from nowhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I was only trying to update the format, will improve the test.

| good_on_application_id | 94590c78-d0a9-406d-8fd3-b913bf5867a9 |
When the application is submitted
Then the `goods` table has the following rows:
| id | application_id | quantity | unit | value |
Copy link
Contributor

Choose a reason for hiding this comment

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

This test feels the same as the one above where it’s not really describing how these values happen to be the values that end up in the table they just sort of exist for no apparent reason.

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.

2 participants