Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Example repository - Level 2 - Stable
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
QIM
Tutorials
Example repository - Level 2 - Stable
Commits
9284a9c3
Commit
9284a9c3
authored
2 years ago
by
Felipe Delestro Matos
Browse files
Options
Downloads
Patches
Plain Diff
pylint fixes
parent
40553c71
No related branches found
No related tags found
No related merge requests found
Pipeline
#17519
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
tests/test_examples.py
+5
-2
5 additions, 2 deletions
tests/test_examples.py
with
6 additions
and
3 deletions
.gitlab-ci.yml
+
1
−
1
View file @
9284a9c3
...
...
@@ -10,6 +10,6 @@ run_tests:
script
:
-
echo "Running unit pytest..."
-
find -name "*.py" -type f -print0 | xargs -0 pylint --fail-under=
8
.0
-
find -name "*.py" -type f -print0 | xargs -0 pylint --fail-under=
5
.0
-
python3 -m pytest -v
-
echo "Done!"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tests/test_examples.py
+
5
−
2
View file @
9284a9c3
import
qimex
"""
Tests for the module
"""
import
pytest
import
qimex
def
test_say_hello
():
"""
Checks default behaviour
"""
user
=
"
Alice
"
expected_output
=
"
Hello Alice!
"
result
=
qimex
.
examples
.
say_hello
(
user
)
...
...
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