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

Refactor catalogue category e2e tests #314 #315

Merged
merged 19 commits into from
Jul 26, 2024

Conversation

joelvdavies
Copy link
Collaborator

@joelvdavies joelvdavies commented Jul 3, 2024

Description

Refactors catalogue category e2e tests. Also applies changes to all refactored tests so far to match the style of #31.

Notes

Removed tests:

  • test_create_catalogue_category_with_properties_with_allowed_values - Tested by the new test_create_leaf_with_properties
  • test_partial_update_catalogue_category_change_from_leaf_to_non_leaf - With the way it is currently written test_partial_update_is_leaf_no_children should be enough for leaf -> non leaf or non-leaf -> leaf as it doesn't care about the value change itself, just whether it is allowed to modify it
  • test_partial_update_catalogue_category_add_property, test_partial_update_catalogue_category_remove_property and test_partial_update_catalogue_category_modify_property replaced with one test updating properties (add and removal is irrelevant here)

Testing instructions

Add a set up instructions describing how the reviewer should test the code

  • Review code
  • Check Actions build
  • Review changes to test coverage

Agile board tracking

Closes #314

@joelvdavies joelvdavies added the enhancement New feature or request label Jul 3, 2024
@joelvdavies joelvdavies self-assigned this Jul 3, 2024
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch 2 times, most recently from a189b53 to d680a92 Compare July 3, 2024 11:40
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch 2 times, most recently from 9d01ea2 to 8a1296a Compare July 3, 2024 14:44
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch from 8a1296a to b72387d Compare July 3, 2024 15:04
test/e2e/test_system.py Outdated Show resolved Hide resolved
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch from 3f36e13 to 74eb873 Compare July 4, 2024 11:27
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch 3 times, most recently from 8ef1d3a to e61d843 Compare July 4, 2024 13:58
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch 2 times, most recently from 8013de7 to 6a785a1 Compare July 5, 2024 08:58
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch from 6a785a1 to 6ab0234 Compare July 5, 2024 08:59
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch from 008cd59 to 66c0248 Compare July 8, 2024 14:59
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch from 220fbe1 to 361b7a8 Compare July 8, 2024 15:46
@joelvdavies joelvdavies mentioned this pull request Jul 10, 2024
3 tasks
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch from 6fd6e10 to 9ea1038 Compare July 16, 2024 07:58
@joelvdavies joelvdavies marked this pull request as ready for review July 24, 2024 14:14
@joelvdavies joelvdavies requested a review from VKTB July 24, 2024 14:15
Copy link
Collaborator

@VKTB VKTB left a comment

Choose a reason for hiding this comment

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

Comments so far before looking at test/e2e/test_catalogue_category.py

test/e2e/conftest.py Show resolved Hide resolved
test/unit/services/test_system.py Outdated Show resolved Hide resolved
test/unit/services/test_system.py Outdated Show resolved Hide resolved
test/unit/repositories/test_system.py Outdated Show resolved Hide resolved
test/unit/repositories/test_system.py Outdated Show resolved Hide resolved
test/unit/repositories/test_catalogue_category.py Outdated Show resolved Hide resolved
test/e2e/test_system.py Outdated Show resolved Hide resolved
test/e2e/test_system.py Outdated Show resolved Hide resolved
test/e2e/test_system.py Outdated Show resolved Hide resolved
test/e2e/test_system.py Outdated Show resolved Hide resolved
test/e2e/test_catalogue_category.py Outdated Show resolved Hide resolved
test/e2e/test_catalogue_category.py Outdated Show resolved Hide resolved
test/e2e/test_catalogue_category.py Outdated Show resolved Hide resolved
@joelvdavies joelvdavies requested a review from VKTB July 26, 2024 07:55
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch from 3d16ff1 to d8bcd65 Compare July 26, 2024 07:57
@joelvdavies joelvdavies force-pushed the refactor-cc-e2e-tests-#314 branch from d8bcd65 to 20dab81 Compare July 26, 2024 08:29
@VKTB
Copy link
Collaborator

VKTB commented Jul 26, 2024

Could you please also run the black formatter as it has some things to reformat? Thanks

@joelvdavies
Copy link
Collaborator Author

joelvdavies commented Jul 26, 2024

Could you please also run the black formatter as it has some things to reformat? Thanks

I thought I did on the latest force push?

@VKTB
Copy link
Collaborator

VKTB commented Jul 26, 2024

Could you please also run the black formatter as it has some things to reformat? Thanks

I thought I did on the latest force push?

Oh sorry, your last commit did not appear for me when I posted this.

Base automatically changed from refactor-cc-service-unit-tests-#308 to develop July 26, 2024 09:04
@joelvdavies
Copy link
Collaborator Author

@VKTB Thanks for being thorough and spotting these, I wouldn't have myself.

@joelvdavies joelvdavies merged commit bcc78d3 into develop Jul 26, 2024
4 checks passed
@joelvdavies joelvdavies deleted the refactor-cc-e2e-tests-#314 branch July 26, 2024 09:16
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.

Refactor catalogue category e2e tests
2 participants