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 |
|---|---|
external_function |
Function for testing. |
mongo_connection_params |
Create dictionary of MongoDB connection parameters. |
first_class_with_nested_child_classes |
Create ParentClass instance for testing. |
first_class_to_mongo_with_nested_child_classes |
Create FirstClassToMongo instance for testing. |
first_class_json_str |
Create JSON string from FirstClass instance for testing. |
first_class_to_mongo_json_str |
Create JSON string from FirstClassToMongo instance for testing. |
ThirdClass ¶
Bases: PythonObjectJson
ThirdClass for testing.
Source code in tests/conftest.py
23 24 25 26 27 28 | |
SecondClass ¶
Bases: PythonObjectJson
SecondClass for testing.
Source code in tests/conftest.py
31 32 33 34 35 36 37 | |
FirstClass ¶
Bases: PythonObjectJson
FirstClass for testing.
Source code in tests/conftest.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
external_function ¶
external_function(param1, param2)
Function for testing.
Source code in tests/conftest.py
18 19 20 | |
mongo_connection_params ¶
mongo_connection_params()
Create dictionary of MongoDB connection parameters.
| Returns: |
|
|---|
Source code in tests/conftest.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | |
first_class_with_nested_child_classes ¶
first_class_with_nested_child_classes()
Create ParentClass instance for testing.
| Returns: |
|
|---|
Source code in tests/conftest.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
first_class_to_mongo_with_nested_child_classes ¶
first_class_to_mongo_with_nested_child_classes(
mongo_connection_params,
)
Create FirstClassToMongo instance for testing.
| Returns: |
|
|---|
Source code in tests/conftest.py
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | |
first_class_json_str ¶
first_class_json_str()
Create JSON string from FirstClass instance for testing.
| Returns: |
|
|---|
Source code in tests/conftest.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | |
first_class_to_mongo_json_str ¶
first_class_to_mongo_json_str(first_class_json_str)
Create JSON string from FirstClassToMongo instance for testing.
| Returns: |
|
|---|
Source code in tests/conftest.py
203 204 205 206 207 208 209 210 211 212 213 214 215 | |
test_pyobjson ¶
Pytest test for Python Object JSON Tool code.
Note
Tests pyobjson.base module.
Classes:
| Name | Description |
|---|---|
TestPythonObjectJson |
Pytest class for PythonObjectJson functionality. |
TestPythonObjectJsonToMongo |
Pytest class for PythonObjectJsonToMongo functionality. |
TestPythonObjectJson ¶
Pytest class for PythonObjectJson functionality.
Source code in tests/test_pyobjson.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
TestPythonObjectJsonToMongo ¶
Pytest class for PythonObjectJsonToMongo functionality.
Source code in tests/test_pyobjson.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |