--- import { Markdown } from 'astro/components'; ---

tests.comparisons.mock_file

module docstring content more content

mock_function

mock_function(
param_a,
param_b=2)
A mock function returning a sum of param_a and param_b if positive numbers, else None

Parameters

param_a
int
A *test* _param_.
param_b
float
Another *test* _param_. | col A |: col B | |-------|--------| | boo | baa more content across broken line|

Returns

summed_number
float
The sum of _param_a_ and _param_b_.
None
None returned if values are negative.

Raises

ValueError
Raises value error if params are not numbers.

Notes

```python print(mock_function(1, 2)) # prints 3 print("boo") print('boo') ``` Random text _Random table_ | col A |: col B | |-------|--------| | boo | baa |

ParentClass

A parent class :::warning An admonition :::

Properties

parent_prop
str

Methods

ParentClass.__init__

ParentClass(
a_param)
Parent initialisation.

Parameters

a_param
str
A parameter. :::note Another admonition :::

ParentClass.no_param

no_param()
No params.

ChildClass

A child class

Inherits from ParentClass.

Properties

param_e

Methods

ChildClass.__init__

ChildClass(
param_c=1.1,
param_d=0.9)
Child initialisation.

Parameters

param_c
float
Yet another test param.
param_d
float
And another.

ChildClass.hello

hello()
A random class method returning "hello"

Returns

str
saying_hello
A string saying "hello"