Skip to content
Snippets Groups Projects
Commit 9f9763ca authored by Adriaan de Beer's avatar Adriaan de Beer
Browse files

fixed tests

parent 538286c0
No related branches found
No related tags found
1 merge request!2ST-256 added some basic structure to the docs folder for automatic extraction of docstrings
Pipeline #11143 passed with warnings
......@@ -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
......@@ -4,7 +4,7 @@
"""Tests for the ska_python_skeleton module."""
import pytest
from ska_python_skeleton import main
from ska_python_skeleton import ska_python_skeleton
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment