Closed tomreitz closed 1 month ago
@johncmerfeld updated the test suite to use pytest instead of a user-facing flag
Left a couple notes but I think this is great! Really
excited
to continue building on it in the future and hopefully someday use it to automatically check code before merges!
Thanks much, @johncmerfeld ! Appreciate the review. I addressed a few of your comments - give this a 👍 if I can merge this PR now.
Thanks much, @johncmerfeld ! Appreciate the review. I addressed a few of your comments - give this a 👍 if I can merge this PR now.
Looking great -- I fully endorse merging!
This PR fixes a bug @megan-nash-ea pointed out where
lightbeam send
resulted in an error aboutlightbeam.get_endpoints_with_data()
(which was recently refactored as part of the reference validation feature).Discovering this bug, which really should have been preventable, led me to also add a test suite for lightbeam in this PR. Now, if you run
lightbeam -t
, lightbeam will run through a test suite against an Ed-Fi API you specify (recommended to use a local Docker deployment of the stock Ed-Fi API populated with the Grand Bend dataset). The tests cover all lightbeam commands:count
,fetch
,send
,delete
, andtruncate
. The test suite is designed to minimize impact on the API and to un-do any changes it does make. Seelightbeam/tests/README.md
for details about exactly what tests are run.