Skip to main content

A package to autograde

Project description

autograding

Autograder and custommagics for python

How to run

conda create -n autograding_env
conda init
conda activate autograding_env

pip install -r requirements.txt

python main.py

How to make unittest

Example:

from autograde_module import ExtendTestCase  # Adds extra tests

"""
Student code can be accessed using the module student which is dynamically import by the autograder.
Do not add the code "import student"
"""

class Test1Basics(ExtendTestCase):
    def test_add(self):
        self.assertEqual(3+5, student.add(3, 5))

Make sure that in the assignment .yml file contains:

  • SUITES_AND_UNITTESTS
  • Where the first input is the name of the unittest without "unit_test_"
  • And the second input is the number of unittests
  • The name of the unittest must be unique within each assignments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

liacs_autograder-1.0.0.3.3.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

LIACS_Autograder-1.0.0.3.3-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file liacs_autograder-1.0.0.3.3.tar.gz.

File metadata

  • Download URL: liacs_autograder-1.0.0.3.3.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for liacs_autograder-1.0.0.3.3.tar.gz
Algorithm Hash digest
SHA256 94f71fb4631e7421d2147f751f3c80db992ed0d6cc14d3df13bd4a6966993fd2
MD5 69ec6cf7eddafbd63bed250efb7c5d97
BLAKE2b-256 3775b83e4d14d39cbd96698c56b8048427eaef2eb3785dffac0423afc5e725be

See more details on using hashes here.

File details

Details for the file LIACS_Autograder-1.0.0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for LIACS_Autograder-1.0.0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f329911a27d56693a54cb631c3e25e5d9196a83c3e572e42400e169323f7a664
MD5 887d9b21e001cb4f1e1f093add4affeb
BLAKE2b-256 4d6f616780c5e13e3d08f045ea20e866aad35ebcbb8d698008edbe7268a70039

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page