Orchestrata Ultimate › Tests › Reference › core › base
Tests reference — tests/core/base
tests/core/base — 3 test modules, 46 test functions. Source tree: tests/core/base at commit 8a2cb42ad. Generated from the tests AST snapshot by scripts/gen-data-pages.py.
Prose pending.
Modules
| Module | Tests | Covers |
|---|---|---|
test_entity.py |
24 | 1 |
test_error.py |
11 | 1 |
test_service.py |
11 | 2 |
Module details
tests/core/base/test_entity.py
source · 24 tests · 221 lines
Tests for core.base.entity.
Covers: core.base.entity
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestBaseEntity |
29 | |
| method | TestBaseEntity.test_init_defaults |
30 | |
| method | TestBaseEntity.test_init_with_values |
36 | |
| method | TestBaseEntity.test_touch_updates_timestamp |
42 | |
| method | TestBaseEntity.test_to_dict |
48 | |
| method | TestBaseEntity.test_to_dict_nested_entity |
55 | |
| method | TestBaseEntity.test_to_dict_entity_list |
69 | |
| method | TestBaseEntity.test_from_dict |
82 | |
| method | TestBaseEntity.test_from_dict_ignores_private |
89 | |
| method | TestBaseEntity.test_eq_same_id |
94 | |
| method | TestBaseEntity.test_eq_different_id |
99 | |
| method | TestBaseEntity.test_eq_non_entity |
104 | |
| method | TestBaseEntity.test_hash |
108 | |
| method | TestBaseEntity.test_hash_in_set |
113 | |
| method | TestBaseEntity.test_repr |
119 | |
| method | TestBaseEntity.test_subclass_from_dict |
123 | |
| method | TestBaseEntity.test_domain_entity_alias |
132 | |
| method | TestBaseEntity.test_from_dict_list_of_datetime |
138 | |
| method | TestBaseEntity.test_from_dict_list_of_entities |
148 | |
| method | TestBaseEntity.test_from_dict_list_passthrough |
163 | |
| method | TestBaseEntity.test_from_dict_list_field_non_list_value |
172 | |
| method | TestBaseEntity.test_from_dict_dict_of_datetime |
181 | |
| method | TestBaseEntity.test_from_dict_dict_passthrough |
191 | |
| method | TestBaseEntity.test_from_dict_nested_entity |
200 | |
| method | TestBaseEntity.test_from_dict_returns_subclass_instance_via_self |
215 |
tests/core/base/test_error.py
source · 11 tests · 95 lines
Tests for core.base.error.
Covers: core.base.error
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestBaseError |
28 | |
| method | TestBaseError.test_init_defaults |
29 | |
| method | TestBaseError.test_init_with_code_and_context |
36 | |
| method | TestBaseError.test_str_without_code |
41 | |
| method | TestBaseError.test_str_with_code |
45 | |
| method | TestBaseError.test_to_dict_basic |
49 | |
| method | TestBaseError.test_to_dict_with_cause_baseerror |
57 | |
| method | TestBaseError.test_to_dict_with_cause_plain_exception |
64 | |
| method | TestBaseError.test_to_dict_max_depth_zero |
70 | |
| method | TestBaseError.test_to_dict_cause_chain_depth |
77 | |
| method | TestBaseError.test_inheritance_from_exception |
87 | |
| method | TestBaseError.test_timestamp_is_utc |
91 |
tests/core/base/test_service.py
source · 11 tests · 84 lines
Tests for core.base.service.
Covers: core.base.service, core.interfaces/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestBaseService |
27 | |
| method | TestBaseService.test_init_defaults |
28 | |
| method | TestBaseService.test_init_with_config |
33 | |
| method | TestBaseService.test_logger_name |
37 | |
| method | TestBaseService.test_initialize |
41 | |
| method | TestBaseService.test_start_is_noop |
46 | |
| method | TestBaseService.test_stop_is_noop |
50 | |
| method | TestBaseService.test_get_health |
54 | |
| method | TestBaseService.test_get_metadata |
58 | |
| method | TestBaseService.test_subclass_logger |
65 | |
| method | TestBaseService.test_subclass_metadata |
72 | |
| method | TestBaseService.test_lock_is_threading_lock |
80 |