You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of now, the code lacks unit tests. However, it does have a test function, primarily running the main(args=...) and then checking the expected output based on whether the output contains a print statement of, for example, Number of components: 3
For bookkeeping purposes, #32 this PR was created to refactor our existing test function, please carefully read the discussions provided in the PR before addressing this issue.
Activity
bobleesj commentedon Nov 5, 2024
@bobleesj (remind myself in the notification box to describe the issue in detail)
bobleesj commentedon Nov 5, 2024
As of now, the code lacks unit tests. However, it does have a test function, primarily running the
main(args=...)and then checking the expected output based on whether the output contains a print statement of, for example,Number of components: 3Here is the test function:
The arguments for
main(args=data_dir)are parsed fromtest_map/tmreferred to astm[0], i..g.data_dir, "--xrange", "5,10"Problem
The print statement of the number of components does not match against what's expected
test_mapabove.Proposed solution
plt.show()since the rest tests aren't executed until the current plot is closed manually.sbillinge commentedon Nov 6, 2024
we can probably junk this test but let's take the opportunity of populating a few tests. We don't usually test the arg parser anyway.
bobleesj commentedon Nov 12, 2024
For bookkeeping purposes, #32 this PR was created to refactor our existing test function, please carefully read the discussions provided in the PR before addressing this issue.