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.5.1.tar.gz (20.1 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.5.1-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: liacs_autograder-1.0.0.5.1.tar.gz
  • Upload date:
  • Size: 20.1 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.5.1.tar.gz
Algorithm Hash digest
SHA256 2b6a77993b3da4e1989005b3acb1883334b26dff15873f9dcc82327dcdd70012
MD5 3732b12d0a4051db9472f86f25662831
BLAKE2b-256 023f2665e748b4dd5a2349962821bf49ba15265a581365aacdd9179d613b272d

See more details on using hashes here.

File details

Details for the file liacs_autograder-1.0.0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for liacs_autograder-1.0.0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f35f2d46e04c82148407677d0cae6448fbbed643d97d991f1bdc9abe48b617e
MD5 312e6594136b91d9820997c87370c0ee
BLAKE2b-256 5288d7f61338dc4f4d73bbe753e413adf1c3f8ce3d66b7f24f8f9b9799fda745

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