Skip to content

Support for multiple Testcases in Question Model #8

Open

Description

@Bhupesh-V

Currently we only have support for adding 1 Testcase per Question
We could either create a New TestCase Model
Or store Testcases in a file

Activity

  1. added
    discussionDiscussion is required before accepting PR or making new changes
    on Dec 17, 2019
  2. pinned this issue on Jan 4, 2020
  3. Bhupesh-V commented on Jan 19, 2020

    @Bhupesh-V
    ContributorAuthor

    We currently have 2 options to do this

    1. Create a TestCase Class.
    class TestCase(models.Model):
        question = models.ForeignKey(to=Question, null=False, blank=True)
        sample_input = models.TextField(blank=True)
        sample_output = models.TextField(blank=True)

    We then iterate every testcase for each question while evaluating code.

    1. Store every sample input and its corresponding output in the already available sample_input & sample_output fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionDiscussion is required before accepting PR or making new changesenhancementNew feature requestpriorityThis needs to be fixed first

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions