Testing for dataset upload
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 33
- Forks
- 30
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 6
Description
I spent some time with designing tests for dataset upload but I'm not able to find a decent way to send file+json via Flask test_client and test it out.
Blueprint link: https://github.com/openml/openml.org/blob/6fb56e8475f0eae6c42fd749c527b16a719630cf/server/data/views.py#L43
Test template: https://github.com/openml/openml.org/blob/master/tests/test_user_routes.py
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the dataset upload blueprint at server/data/views.py around line 43, then review tests/test_user_routes.py for the existing Flask test_client patterns. Determine how the upload request should be represented in the tests, and consider the work complete when dataset upload coverage is added and the tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flask, python
- Domain
- backend, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100