Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coursebox_testing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tuhe
coursebox_testing
Commits
48627967
Commit
48627967
authored
1 year ago
by
tuhe
Browse files
Options
Downloads
Patches
Plain Diff
Removed many requirements
parent
fd14971c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
requirements.txt
+1
-0
1 addition, 0 deletions
requirements.txt
src/coursebox_testing/testing/testing.py
+10
-10
10 additions, 10 deletions
src/coursebox_testing/testing/testing.py
with
11 additions
and
10 deletions
requirements.txt
+
1
−
0
View file @
48627967
tabulate
pydocstyle
darglint
interrogate
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/coursebox_testing/testing/testing.py
+
10
−
10
View file @
48627967
...
...
@@ -338,15 +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
:
#
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
#
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment