Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
ds_cs4bd_2324
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Graupner, Sven
ds_cs4bd_2324
Commits
09b30530
Commit
09b30530
authored
1 year ago
by
Sven Graupner
Browse files
Options
Downloads
Patches
Plain Diff
update C_expressions/test_expressions.py
parent
03fddf62
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
C_expressions/test_expressions.py
+13
-11
13 additions, 11 deletions
C_expressions/test_expressions.py
with
13 additions
and
11 deletions
C_expressions/test_expressions.py
+
13
−
11
View file @
09b30530
"""
Run unit tests with discovery (-m) or from __main__() with verbosity level 2
- python -m unittest
test_expressions.py
- python -m unittest
- python test_expressions.py
Output with verbosity level < 2:
...
...
@@ -59,16 +59,16 @@ Test_case_i = Test_case_j = Test_case_k = abc.ABC
# uncomment tests one after another as you progress with
# expressions b) through k)
Test_case_a
=
Test_case
# test a) passes, solution is given in numbers.py
Test_case_b
=
Test_case
Test_case_c
=
Test_case
Test_case_d
=
Test_case
Test_case_e
=
Test_case
Test_case_f
=
Test_case
Test_case_g
=
Test_case
Test_case_h
=
Test_case
Test_case_i
=
Test_case
Test_case_j
=
Test_case
Test_case_k
=
Test_case
#
Test_case_b = Test_case
#
Test_case_c = Test_case
#
Test_case_d = Test_case
#
Test_case_e = Test_case
#
Test_case_f = Test_case
#
Test_case_g = Test_case
#
Test_case_h = Test_case
#
Test_case_i = Test_case
#
Test_case_j = Test_case
#
Test_case_k = Test_case
class
TestCase_a_number_of_numbers
(
Test_case_a
):
...
...
@@ -231,7 +231,9 @@ if __name__ == '__main__':
test_classes
=
unittest
.
defaultTestLoader
\
.
discover
(
PACKAGE_DIR
,
pattern
=
'
test_*.py
'
,
top_level_dir
=
PROJECT_PATH
)
#
verbosity_level
=
1
suite
=
unittest
.
TestSuite
(
test_classes
)
runner
=
unittest
.
runner
.
TextTestRunner
(
verbosity
=
verbosity_level
)
result
=
runner
.
run
(
suite
)
print
(
result
)
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