GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support for multiple Testcases in Question Model · Issue #8 · codeclassroom/codeclassroom

Support for multiple Testcases in Question Model #8

New issue
Copy link
New issue
Copy link
Open
Open
Support for multiple Testcases in Question Model#8
Copy link
Labels
discussionDiscussion is required before accepting PR or making new changesDiscussion is required before accepting PR or making new changesenhancementNew feature requestNew feature requestpriorityThis needs to be fixed firstThis needs to be fixed first

Description

@Bhupesh-V
Bhupesh-V
opened on Dec 17, 2019
Issue body actions

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. Bhupesh-V
    added
    enhancementNew feature requestNew feature request
    discussionDiscussion is required before accepting PR or making new changesDiscussion is required before accepting PR or making new changes
    on Dec 17, 2019
  2. Bhupesh-V
    pinned this issue on Jan 4, 2020
  3. Bhupesh-V commented on Jan 19, 2020

    @Bhupesh-V
    Bhupesh-V
    on Jan 19, 2020
    ContributorAuthor
    More actions

    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
  4. Bhupesh-V
    added
    priorityThis needs to be fixed firstThis needs to be fixed first
    on Jan 22, 2020
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 changesDiscussion is required before accepting PR or making new changesenhancementNew feature requestNew feature requestpriorityThis needs to be fixed firstThis 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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.