PyTest
¶
Modules:
Name | Description |
---|---|
conftest |
Pytest top-level conftest.py. |
test_pyobjson |
Pytest test for Python Object JSON Tool code. |
conftest ¶
Pytest top-level conftest.py.
Classes:
Name | Description |
---|---|
ThirdClass |
ThirdClass for testing. |
SecondClass |
SecondClass for testing. |
FirstClass |
FirstClass for testing. |
Functions:
Name | Description |
---|---|
ext_func |
Function external_function for testing. |
external_function |
External function for testing. |
first_class_with_empty_arguments |
Create FirstClass instance with empty arguments for testing. |
first_class_with_nested_child_classes |
Create FirstClass instance for testing. |
first_class_json_str |
Create JSON string from FirstClass instance for testing. |
ThirdClass ¶
Bases: PythonObjectJson
ThirdClass for testing.
Source code in tests/conftest.py
21 22 23 24 25 26 |
|
SecondClass ¶
Bases: PythonObjectJson
SecondClass for testing.
Source code in tests/conftest.py
29 30 31 32 33 34 35 |
|
FirstClass ¶
Bases: PythonObjectJson
FirstClass for testing.
Source code in tests/conftest.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
ext_func ¶
ext_func(param_1, param_2)
Function external_function for testing.
Source code in tests/conftest.py
16 17 18 |
|
external_function ¶
external_function()
External function for testing.
Source code in tests/conftest.py
65 66 67 68 |
|
first_class_with_empty_arguments ¶
first_class_with_empty_arguments()
Create FirstClass instance with empty arguments for testing.
Returns: |
|
---|
Source code in tests/conftest.py
71 72 73 74 75 76 77 78 79 |
|
first_class_with_nested_child_classes ¶
first_class_with_nested_child_classes(external_function)
Create FirstClass instance for testing.
Returns: |
|
---|
Source code in tests/conftest.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
|
first_class_json_str ¶
first_class_json_str()
Create JSON string from FirstClass instance for testing.
Returns: |
|
---|
Source code in tests/conftest.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
|
test_pyobjson ¶
Pytest test for Python Object JSON Tool code.
Note
Tests pyobjson.base module.
Classes:
Name | Description |
---|---|
TestPythonObjectJson |
Pytest class for PythonObjectJson functionality. |
TestPythonObjectJson ¶
Pytest class for PythonObjectJson functionality.
Source code in tests/test_pyobjson.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|