openml / openml/openml.org

Testing for dataset upload

Open
#132 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.