Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci-cd-exercise
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
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
Cedric Verstege
ci-cd-exercise
Commits
2f06f266
Commit
2f06f266
authored
1 month ago
by
wep23441
Browse files
Options
Downloads
Patches
Plain Diff
linting 2
parent
ec4f4022
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
case-2-test/test_wizard_calculator.py
+2
-1
2 additions, 1 deletion
case-2-test/test_wizard_calculator.py
case-2-test/wizard_calculator.py
+2
-1
2 additions, 1 deletion
case-2-test/wizard_calculator.py
with
4 additions
and
2 deletions
case-2-test/test_wizard_calculator.py
+
2
−
1
View file @
2f06f266
...
...
@@ -34,7 +34,8 @@ class TestWizardCalculator(unittest.TestCase):
def
test_conjure_magic_circle_area
(
self
):
self
.
assertAlmostEqual
(
conjure_magic_circle_area
(
1
),
math
.
pi
)
self
.
assertAlmostEqual
(
conjure_magic_circle_area
(
0
),
0
)
self
.
assertAlmostEqual
(
conjure_magic_circle_area
(
2.5
),
math
.
pi
*
2.5
*
2.5
)
self
.
assertAlmostEqual
(
conjure_magic_circle_area
(
2.5
),
math
.
pi
*
2.5
*
2.5
)
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
case-2-test/wizard_calculator.py
+
2
−
1
View file @
2f06f266
...
...
@@ -15,7 +15,8 @@ def brew_potions(a, b):
def
cast_division_spell
(
a
,
b
):
if
b
==
0
:
raise
ValueError
(
"
Attempted to split by zero — the magic council forbids it!
"
)
raise
ValueError
(
"
Attempted to split by zero — the magic council forbids it!
"
)
return
a
/
b
...
...
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