Refactor tests for the new project creation flow in test_starters.py
#3594
Labels
Component: Testing
Issue/PR that addresses tests
Milestone
Description
The
test_starters.py
file has grown too much. It contains a huge amount of tests and when adding a new test it's not very clear where it should go. There's also inconsistency in how the test classes are divided. Some test valid and invalid only scenarios others contain a mix.Possible Implementation
This a suggestion of how the
test_starters.py
could be refactored:config.yml
filetest_starters.py
contains test related to the starters flow e.g. parsing of tools and thestarters list
command.conftest.py
This PR shows this break down of the
test_starters.py
tests: #3550Problems
❗ Currently this setup is not working because depending on how the tests are run (individually vs as part of the full test suite) there's an issue with the
.cookiecutter
cache.Idea on how to fix this
The original starter tests added before any of the tools work was done mocked all the git interactions. Maybe the tools tests should be setup in a different way. We already have e2e tests to test the full flow. I'm thinking maybe these shouldn't be interacting with the full on starter and git interaction but just unit test the inputs.
Possible Alternatives
Move all tests that need starters to the
kedro-starters
repo.The text was updated successfully, but these errors were encountered: