Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
formulaone
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Safouan Er-Ryfy
formulaone
Commits
e3137061
Commit
e3137061
authored
8 years ago
by
Kenneth Reitz
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #17 from zinob/master
Lets allow the helpers to be helpfull
parents
9bce61d2
983ab0fe
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sample/core.py
+4
-1
4 additions, 1 deletion
sample/core.py
sample/helpers.py
+3
-0
3 additions, 0 deletions
sample/helpers.py
tests/test_advanced.py
+2
-2
2 additions, 2 deletions
tests/test_advanced.py
with
9 additions
and
3 deletions
sample/core.py
+
4
−
1
View file @
e3137061
# -*- coding: utf-8 -*-
from
.
import
helpers
def
get_hmm
():
"""
Get a thought.
"""
return
'
hmmm...
'
def
hmm
():
"""
Contemplation...
"""
print
get_hmm
()
\ No newline at end of file
if
helpers
.
get_answer
():
print
(
get_hmm
())
This diff is collapsed.
Click to expand it.
sample/helpers.py
+
3
−
0
View file @
e3137061
def
get_answer
():
"""
Get an answer.
"""
return
True
This diff is collapsed.
Click to expand it.
tests/test_advanced.py
+
2
−
2
View file @
e3137061
...
...
@@ -9,8 +9,8 @@ class AdvancedTestSuite(unittest.TestCase):
"""
Advanced test cases.
"""
def
test_thoughts
(
self
):
sample
.
hmm
()
self
.
assertIsNone
(
sample
.
hmm
()
)
if
__name__
==
'
__main__
'
:
unittest
.
main
()
\ No newline at end of file
unittest
.
main
()
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