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 manufacturer tests #313

Merged
merged 9 commits into from
Jul 24, 2024
Merged

Refactor manufacturer tests #313

merged 9 commits into from
Jul 24, 2024

Conversation

VKTB
Copy link
Collaborator

@VKTB VKTB commented Jul 2, 2024

Description

Refactors the manufacturer tests in the same format as in #302 as part of #90.

Removed the tests:

  • test_partial_update_address (repo unit and e2e) as the standard update is enough
  • test_get_with_non_existent_id as not needed

Testing instructions

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

Agile board tracking

closes #312

Copy link
Collaborator

@joelvdavies joelvdavies left a comment

Choose a reason for hiding this comment

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

Only looked through the repo tests so far, as I went through I made changes to my own branch as well (66c0248) so in theory they should all be very similar now. Just a couple of minor comments for things that could be done here.

test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/services/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/services/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@joelvdavies joelvdavies left a comment

Choose a reason for hiding this comment

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

Just going through the service tests, I made corresponding changes in 361b7a8.

test/unit/services/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/services/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/services/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/services/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/services/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
@VKTB VKTB marked this pull request as ready for review July 10, 2024 12:12
@VKTB VKTB requested a review from joelvdavies July 10, 2024 12:12
@VKTB VKTB force-pushed the refactor-manufacturer-tests-#312 branch from 23b8793 to 6fd92b4 Compare July 10, 2024 12:55
Copy link
Collaborator

@joelvdavies joelvdavies left a comment

Choose a reason for hiding this comment

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

Just some very minor picky comments, feel free to ignore, just though it was worth being consistent while we are here.

test/e2e/test_manufacturer.py Outdated Show resolved Hide resolved
test/e2e/test_manufacturer.py Outdated Show resolved Hide resolved
test/e2e/test_manufacturer.py Outdated Show resolved Hide resolved
test/mock_data.py Show resolved Hide resolved
@VKTB VKTB force-pushed the refactor-manufacturer-tests-#312 branch from 6fd92b4 to 38edd54 Compare July 11, 2024 17:07
@VKTB VKTB requested a review from joelvdavies July 15, 2024 11:55
Copy link
Collaborator

@joelvdavies joelvdavies left a comment

Choose a reason for hiding this comment

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

Just to address #313 (comment)

test/e2e/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/repositories/test_manufacturer.py Outdated Show resolved Hide resolved
test/unit/services/test_manufacturer.py Outdated Show resolved Hide resolved
Co-authored-by: Joel Davies <90245114+joelvdavies@users.noreply.github.com>
@VKTB VKTB requested a review from joelvdavies July 18, 2024 13:00
@VKTB VKTB merged commit 00b8591 into develop Jul 24, 2024
6 checks passed
@VKTB VKTB deleted the refactor-manufacturer-tests-#312 branch July 24, 2024 12:17
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.

Refactor manufacturer tests
2 participants