Closed tiluckdave closed 1 month ago
How do I create tests for this?
How do I create tests for this?
Tests would be awesome. We use the python/tests
folder to hold our tests, and we use pytest
(or tach test
) to run them.
There should be a few good examples there, like this one: https://github.com/gauge-sh/tach/blob/3f91c1da08862473a06118ebf4e33b95f7fd5ee8/python/tests/test_imports.py
which set up project files in a temporary directory and then check that Tach's logic produces the expected results.
Building a few test cases with and without cycles would be fantastic!
@emdoyle Can you please review!
Hey @emdoyle can you please review
@emdoyle I am done with the requested changes.
~ Sorry for the delay. I was unwell for the past week.
@tiluckdave just made a couple final tweaks in #206 - merging this! Thank you so much for the contribution π
Checks for circular dependencois if
forbid_circular_dependencies
is set to true in tach.yml file.Fixes #146