Skip to content
Snippets Groups Projects
Commit fd14971c authored by tuhe's avatar tuhe
Browse files

Removed many requirements

parent d668518a
No related branches found
No related tags found
No related merge requests found
Metadata-Version: 2.1
Name: coursebox-testing
Version: 0.0.1
Summary: A course management system currently used at DTU (testing software)
Home-page: https://lab.compute.dtu.dk/tuhe/coursebox_testing
Author: Tue Herlau
Author-email: tuhe@dtu.dk
License: MIT
Project-URL: Bug Tracker, https://lab.compute.dtu.dk/tuhe/coursebox_testing/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
# Coursebox DTU (testing tools)
DTU course management software (testing plugins)
## Installation
```terminal
pip install git+https://gitlab.compute.dtu.dk/tuhe/coursebox_testing
```
## Citing
```bibtex
@online{coursebox,
title={Coursebox (0.1.1): \texttt{pip install coursebox}},
url={https://lab.compute.dtu.dk/tuhe/coursebox},
urldate = {2021-09-07},
month={9},
publisher={Technical University of Denmark (DTU)},
author={Tue Herlau},
year={2023},
}
```
LICENSE
README.md
pyproject.toml
setup.py
src/coursebox_testing/__init__.py
src/coursebox_testing.egg-info/PKG-INFO
src/coursebox_testing.egg-info/SOURCES.txt
src/coursebox_testing.egg-info/dependency_links.txt
src/coursebox_testing.egg-info/requires.txt
src/coursebox_testing.egg-info/top_level.txt
src/coursebox_testing/testing/__init__.py
src/coursebox_testing/testing/testing.py
\ No newline at end of file
unitgrade
coursebox_testing
from subprocess import run
import subprocess
import time
from collections import defaultdict
import glob
import tabulate
import sys
import sys
import warnings
......@@ -14,14 +15,11 @@ def check_by_grade_script(student_dir, module):
:param module:
:return:
"""
import sys
# from unitgrade.utils import
# from unitgrade_private.run import run # Don't use tihs as it is not available during test.
cmd = f"cd {student_dir} && {sys.executable} -m {module}"
# output = subprocess.check_output(f"cd {student_dir} && {sys.executable} -m {module}", shell=True, check=False)
from subprocess import run
print("Running command", cmd)
p = run(cmd, capture_output=True, check=False, shell=True)
print('exit status:', p.returncode)
......@@ -103,7 +101,7 @@ def check_py_script(student_dir, module):
# return p, total, out
def check_pyhon_documentation_in_student_repo(student_dir_complete=None, package="cp"):
from interrogate import coverage
if student_dir_complete is None:
# It is important to not import cp_box here during CI/CD. The coursebox packages is not/should not be installed.
from cp_box import cp_main
......@@ -340,5 +338,15 @@ def _run_student_tests(student_dir_base=None, weeks=None, projects=None, fail_if
dd['Points total'].append(val['t1'])
dd['Time taken'].append(int(val['time1']))
try:
import tabulate
print(tabulate.tabulate(dd, headers='keys'))
except Exception as e:
print("No tabulate so you get the bad version: \n\n")
i = 0
print(" | ".join([k for k in dd]))
while True:
print( " | ".join( [dd[k][i] for k in dd] ) )
i += 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment