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.2.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.2-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for liacs_autograder-1.0.0.5.2.tar.gz
Algorithm Hash digest
SHA256 f1c4753dc2db5fd2cc009a52f14fbb48a4387f417e14f82e6b3a5c262146acbc
MD5 5707fab18f4ee4bebc0cd1d2e9dd6648
BLAKE2b-256 07b6cb41b65dbfa667c0b36e971bfcf913dfa1b8c170555d886e14b8366cc9b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for liacs_autograder-1.0.0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cbdc3eff387c535c5903f6ff0cec3e3d5a8d3e78fd5772019bfbaeb652ea551c
MD5 95b9227678e8f1ddfbfd10f8291c26b8
BLAKE2b-256 5ac9412fb529cc90119fa73a25e4e7a6a0ad0d8f0ea7e16cdeb25dd2cbd304b7

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