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

Update test files for unit tests #436

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Update test files for unit tests #436

merged 1 commit into from
Nov 6, 2024

Conversation

aspeake
Copy link
Collaborator

@aspeake aspeake commented Nov 1, 2024

Ensures that unit tests depend only on data in tests/test_files, and not user data such as /ecm_definitions which might change with project-specific branches. Some file paths have been updated in the code to make this possible.

One minor feature is also added to remove ECMs from the ecm_files argument in ecm_prep_args.py, instead of catching that in ecm_prep.py (https://github.com/trynthink/scout/pull/436/files#diff-2372518dd4f83c63eb5d865655069cd8e2e557dd41be361b3ed267554c2837ffR49). A unit test, test_missing_ecms is added to cover that.

@aspeake aspeake requested a review from jtlangevin November 1, 2024 21:45
@aspeake aspeake added this to the v1.0.1 milestone Nov 5, 2024
@aspeake aspeake self-assigned this Nov 5, 2024
@jtlangevin jtlangevin merged commit 25b3675 into master Nov 6, 2024
9 checks passed
@aspeake aspeake deleted the unit_test_files branch November 6, 2024 15:05
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.

2 participants