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

Refactor test subset script and add test cases #621

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

EddieLF
Copy link
Contributor

@EddieLF EddieLF commented Nov 22, 2023

I've reformatted the create_test_subset.py script with a class definition for TestSubsetGenerator. I basically just moved the existing code into class methods and cleaned up the main function by calling the various class methods. I also added in a locally defined random seed so that the random seeding is consistent for the test cases.

I made a start on the test cases, however I'm a little stuck on testing the transferring of participants into the test project. In the test cases, the default project created is "test". I think creating a project called "test-test" to test this script is fine (albeit a little confusing), but I've not been able to get the create_project() method working from the project permissions table.

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.

1 participant