Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csp-lmc-subelement-old
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Gianluca Marotta
csp-lmc-subelement-old
Commits
9f9763ca
Commit
9f9763ca
authored
Nov 5, 2019
by
Adriaan de Beer
Browse files
Options
Downloads
Patches
Plain Diff
fixed tests
parent
538286c0
No related branches found
No related tags found
1 merge request
!2
ST-256 added some basic structure to the docs folder for automatic extraction of docstrings
Pipeline
#11143
passed with warnings
Nov 5, 2019
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ska_python_skeleton/ska_python_skeleton.py
+5
-3
5 additions, 3 deletions
ska_python_skeleton/ska_python_skeleton.py
tests/test_ska_skeleton.py
+5
-3
5 additions, 3 deletions
tests/test_ska_skeleton.py
with
10 additions
and
6 deletions
ska_python_skeleton/
mai
n.py
→
ska_python_skeleton/
ska_python_skeleto
n.py
+
5
−
3
View file @
9f9763ca
...
...
@@ -9,12 +9,14 @@ def function_example():
# TODO: Replace all the following code with the desired functionality for the package
class
SKA
():
"""
Define class and it
'
s attributes
"""
class
SKA
:
"""
Define class, methods etc
"""
something
=
0
def
example
(
self
):
"""
Example: Define non return function for subsequent test.
"""
def
testing_
example
(
self
):
def
example
_2
(
self
):
"""
Example: Define function for subsequent test with specific return value.
"""
return
2
This diff is collapsed.
Click to expand it.
tests/test_ska_skeleton.py
+
5
−
3
View file @
9f9763ca
...
...
@@ -4,7 +4,7 @@
"""
Tests for the ska_python_skeleton module.
"""
import
pytest
from
ska_python_skeleton
import
mai
n
from
ska_python_skeleton
import
ska_python_skeleto
n
# TODO: Replace all the following examples with tests for the ska_python_skeleton package code
...
...
@@ -34,5 +34,7 @@ def test_ska_python_skeleton(an_object):
def
test_package
():
"""
Example: Assert the ska_python_skeleton package code.
"""
assert
main
.
example
()
is
None
assert
main
.
testing_example
()
==
2
assert
ska_python_skeleton
.
function_example
()
is
None
foo
=
ska_python_skeleton
.
SKA
()
assert
foo
.
example_2
()
==
2
assert
foo
.
example
()
is
None
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
sign in
to comment