orionis 0.432.0__py3-none-any.whl → 0.435.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- orionis/app.py +17 -0
- orionis/metadata/framework.py +1 -1
- orionis/support/entities/base.py +18 -37
- orionis/support/facades/console.py +3 -9
- orionis/support/facades/dumper.py +3 -9
- orionis/support/facades/logger.py +3 -9
- orionis/support/facades/path_resolver.py +3 -10
- orionis/support/facades/progress_bar.py +3 -10
- orionis/support/facades/testing.py +4 -10
- orionis/support/facades/workers.py +4 -9
- orionis/support/formatter/exceptions/contracts/parser.py +10 -7
- orionis/support/formatter/exceptions/parser.py +28 -26
- orionis/support/formatter/serializer.py +12 -5
- orionis/support/patterns/singleton/meta.py +17 -21
- orionis/support/standard/contracts/std.py +25 -24
- orionis/support/standard/exceptions/value.py +2 -2
- orionis/support/standard/std.py +26 -24
- orionis/support/wrapper/dot_dict.py +16 -51
- orionis/test/cases/asynchronous.py +17 -81
- orionis/test/cases/synchronous.py +17 -73
- orionis/test/contracts/dumper.py +17 -21
- orionis/test/contracts/kernel.py +5 -12
- orionis/test/contracts/logs.py +16 -21
- orionis/test/contracts/printer.py +70 -8
- orionis/test/contracts/render.py +7 -13
- orionis/test/contracts/test_result.py +58 -27
- orionis/test/contracts/unit_test.py +18 -18
- orionis/test/core/unit_test.py +325 -445
- orionis/test/entities/result.py +49 -21
- orionis/test/enums/status.py +11 -17
- orionis/test/exceptions/config.py +4 -8
- orionis/test/exceptions/failure.py +2 -18
- orionis/test/exceptions/persistence.py +4 -8
- orionis/test/exceptions/runtime.py +4 -8
- orionis/test/exceptions/value.py +5 -13
- orionis/test/kernel.py +14 -42
- orionis/test/output/dumper.py +21 -43
- orionis/test/output/printer.py +6 -146
- orionis/test/records/logs.py +57 -121
- orionis/test/validators/base_path.py +8 -6
- orionis/test/validators/execution_mode.py +2 -3
- orionis/test/validators/fail_fast.py +4 -8
- orionis/test/validators/folder_path.py +5 -7
- orionis/test/validators/module_name.py +3 -3
- orionis/test/validators/name_pattern.py +4 -9
- orionis/test/validators/pattern.py +4 -9
- orionis/test/validators/persistent.py +4 -14
- orionis/test/validators/persistent_driver.py +7 -12
- orionis/test/validators/print_result.py +4 -9
- orionis/test/validators/tags.py +6 -7
- orionis/test/validators/throw_exception.py +7 -14
- orionis/test/validators/verbosity.py +15 -5
- orionis/test/validators/web_report.py +6 -10
- orionis/test/validators/workers.py +9 -4
- orionis/test/view/render.py +9 -26
- {orionis-0.432.0.dist-info → orionis-0.435.0.dist-info}/METADATA +1 -1
- {orionis-0.432.0.dist-info → orionis-0.435.0.dist-info}/RECORD +76 -75
- tests/support/entities/mock_dataclass.py +16 -10
- tests/support/entities/test_base.py +6 -14
- tests/support/patterns/singleton/test_patterns_singleton.py +7 -8
- tests/support/standard/test_services_std.py +113 -37
- tests/support/wrapper/test_services_wrapper_docdict.py +25 -40
- tests/testing/cases/test_testing_asynchronous.py +14 -14
- tests/testing/cases/test_testing_synchronous.py +12 -14
- tests/testing/entities/test_testing_result.py +12 -51
- tests/testing/enums/test_testing_status.py +8 -13
- tests/testing/output/test_testing_dumper.py +3 -6
- tests/testing/output/test_testing_printer.py +5 -5
- tests/testing/records/test_testing_records.py +16 -26
- tests/testing/test_testing_unit.py +8 -94
- tests/testing/validators/test_testing_validators.py +55 -112
- tests/testing/view/test_render.py +4 -5
- {orionis-0.432.0.dist-info → orionis-0.435.0.dist-info}/WHEEL +0 -0
- {orionis-0.432.0.dist-info → orionis-0.435.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.432.0.dist-info → orionis-0.435.0.dist-info}/top_level.txt +0 -0
- {orionis-0.432.0.dist-info → orionis-0.435.0.dist-info}/zip-safe +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
orionis/app.py,sha256=b69fOzj2J8Aw5g0IldWZXixUDeeTO9vcHc_Njses9HU,603
|
|
2
3
|
orionis/console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
4
|
orionis/console/kernel.py,sha256=1CuBCLR6KItRt0_m50YQXirJUMX6lJf4Z4vvOjBqaUU,856
|
|
4
5
|
orionis/console/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -172,7 +173,7 @@ orionis/foundation/providers/progress_bar_provider.py,sha256=WW3grNgH-yV2meSSTeO
|
|
|
172
173
|
orionis/foundation/providers/testing_provider.py,sha256=iJSN2RIChbYIL-1ue6vmPmDMCSrvERDkti4Er9MPiLA,1102
|
|
173
174
|
orionis/foundation/providers/workers_provider.py,sha256=kiQjQRyUEyiBX2zcbF_KmqRgvc7Bvxsvg5oMtIvYniM,1075
|
|
174
175
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
175
|
-
orionis/metadata/framework.py,sha256=
|
|
176
|
+
orionis/metadata/framework.py,sha256=xZaOkjKk17-9lod4InCFpqe5TDF3tAggkcTKJ1Bx5Nk,4088
|
|
176
177
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
177
178
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
178
179
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -266,81 +267,81 @@ orionis/services/system/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
|
|
|
266
267
|
orionis/services/system/runtime/imports.py,sha256=iIwIx8RjBHaiveCdj_WPiMMbWsKGbIs02qpAzL_L3Z0,3158
|
|
267
268
|
orionis/support/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
268
269
|
orionis/support/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
269
|
-
orionis/support/entities/base.py,sha256=
|
|
270
|
+
orionis/support/entities/base.py,sha256=kVx9YWZjYS6C9MraarU7U12OeT5enBp5XqizrQm4RQs,4801
|
|
270
271
|
orionis/support/facades/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
271
|
-
orionis/support/facades/console.py,sha256=
|
|
272
|
-
orionis/support/facades/dumper.py,sha256=
|
|
273
|
-
orionis/support/facades/logger.py,sha256=
|
|
274
|
-
orionis/support/facades/path_resolver.py,sha256=
|
|
275
|
-
orionis/support/facades/progress_bar.py,sha256=
|
|
276
|
-
orionis/support/facades/testing.py,sha256=
|
|
277
|
-
orionis/support/facades/workers.py,sha256=
|
|
272
|
+
orionis/support/facades/console.py,sha256=OvxQ-r8PsPocJTaIUftmJnnr4SuONHQWYFz2_r1CcR4,412
|
|
273
|
+
orionis/support/facades/dumper.py,sha256=XAHJTXrMjPchGQMIAU0hlcUjMZQK_ogrE0voRm2HdI8,434
|
|
274
|
+
orionis/support/facades/logger.py,sha256=2EbSbJDSyKFUQmZUpoMsc5704Mzj2Skehx_9UpDluhc,450
|
|
275
|
+
orionis/support/facades/path_resolver.py,sha256=lRLbu69i8PzM-I53gzXroHIurxzyFdssNWOYMjPgqco,442
|
|
276
|
+
orionis/support/facades/progress_bar.py,sha256=NOCwAV873GptedgySMZpM_A_DoM-UQrMg2kDHpS6zi8,423
|
|
277
|
+
orionis/support/facades/testing.py,sha256=FJy7bnDiNHMe7jutARELHom6umDxlLVMMOj6aLm0Vak,490
|
|
278
|
+
orionis/support/facades/workers.py,sha256=DJ_mSnD4budFBrPGf-epVYrSQ1AzDcJ82db0QmNTAyU,479
|
|
278
279
|
orionis/support/formatter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
279
|
-
orionis/support/formatter/serializer.py,sha256=
|
|
280
|
+
orionis/support/formatter/serializer.py,sha256=SGii2rPei1QR-W1KQTA_IpH4a_46AgaUzSaruwRlcdM,662
|
|
280
281
|
orionis/support/formatter/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
281
|
-
orionis/support/formatter/exceptions/parser.py,sha256=
|
|
282
|
+
orionis/support/formatter/exceptions/parser.py,sha256=GY538PvRmX5Ry7uO3_yfbUVDM2igSAJJnxIDgw61qns,3927
|
|
282
283
|
orionis/support/formatter/exceptions/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
283
|
-
orionis/support/formatter/exceptions/contracts/parser.py,sha256=
|
|
284
|
+
orionis/support/formatter/exceptions/contracts/parser.py,sha256=onLMtggihUGPhCavPnYeiheLlVEHBJCq8XijdraBjm8,1136
|
|
284
285
|
orionis/support/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
285
286
|
orionis/support/patterns/singleton/__init__.py,sha256=BIyMYL5yXpzv_F-jsSEtoKYseGlM8jdJT8hwGuXZZl8,62
|
|
286
|
-
orionis/support/patterns/singleton/meta.py,sha256=
|
|
287
|
+
orionis/support/patterns/singleton/meta.py,sha256=TmrE-QlkglBChD4bmMgQRGT3nli6Kf6UvDl1tiEjQ_o,3801
|
|
287
288
|
orionis/support/standard/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
288
|
-
orionis/support/standard/std.py,sha256=
|
|
289
|
+
orionis/support/standard/std.py,sha256=zwXOellgGy9LTmeAK-rCIr7CgKYg5iQijMjdwmMblFA,3800
|
|
289
290
|
orionis/support/standard/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
290
|
-
orionis/support/standard/contracts/std.py,sha256=
|
|
291
|
+
orionis/support/standard/contracts/std.py,sha256=SJ44qIFDCp4jHL18k4sji5Mt_MN16lpg-0ku1qudh04,3331
|
|
291
292
|
orionis/support/standard/exceptions/__init__.py,sha256=MPwL4i8GSUtLJ82wQ_SlcdgtnIBRk3_CR7JbDhxHf20,93
|
|
292
|
-
orionis/support/standard/exceptions/value.py,sha256=
|
|
293
|
+
orionis/support/standard/exceptions/value.py,sha256=rsyWFQweImaJGTJa7Id7RhPlwWJ4SNf3MONxlH-1VMk,476
|
|
293
294
|
orionis/support/wrapper/__init__.py,sha256=jGoWoIGYuRYqMYQKlrX7Dpcbg-AGkHoB_aM2xhu73yc,62
|
|
294
|
-
orionis/support/wrapper/dot_dict.py,sha256=
|
|
295
|
+
orionis/support/wrapper/dot_dict.py,sha256=T8xWwwOhBZHNeXRwE_CxvOwG9UFxsLqNmOJjV2CNIrc,7284
|
|
295
296
|
orionis/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
296
|
-
orionis/test/kernel.py,sha256=
|
|
297
|
+
orionis/test/kernel.py,sha256=OXsrfm0wLdm8eg1dvmE6kqK_0xXI6RcZJ5HUaGteGas,5185
|
|
297
298
|
orionis/test/cases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
298
|
-
orionis/test/cases/asynchronous.py,sha256=
|
|
299
|
-
orionis/test/cases/synchronous.py,sha256=
|
|
299
|
+
orionis/test/cases/asynchronous.py,sha256=3e1Y3qzIxVU7i7lbLFEVyJ89IA74JsB7famx71W-p2E,1974
|
|
300
|
+
orionis/test/cases/synchronous.py,sha256=S5jhuDEZ5I9wosrTFaCtowkD5r5HzJH6mKPOdEJcDJE,1734
|
|
300
301
|
orionis/test/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
301
|
-
orionis/test/contracts/dumper.py,sha256
|
|
302
|
-
orionis/test/contracts/kernel.py,sha256=
|
|
303
|
-
orionis/test/contracts/logs.py,sha256=
|
|
304
|
-
orionis/test/contracts/printer.py,sha256=
|
|
305
|
-
orionis/test/contracts/render.py,sha256=
|
|
306
|
-
orionis/test/contracts/test_result.py,sha256=
|
|
307
|
-
orionis/test/contracts/unit_test.py,sha256=
|
|
302
|
+
orionis/test/contracts/dumper.py,sha256=-QKcbD1afjjRQ4oDwJuCZ0c1TyKa4YK_g_5gX6t0kA8,1356
|
|
303
|
+
orionis/test/contracts/kernel.py,sha256=tBUt8cr6HGE16lsIaRp1FoDcr46tiEta5PaasfbHe-w,732
|
|
304
|
+
orionis/test/contracts/logs.py,sha256=kRH3TGQcTNI0kRxFyEs13Y7NOPP9x9WGitPexnoLzQo,2352
|
|
305
|
+
orionis/test/contracts/printer.py,sha256=iBz8wHAGaS21VBsHlZQVcx0xu9Bqusb-CLAjj-R1Sjg,3412
|
|
306
|
+
orionis/test/contracts/render.py,sha256=wpDQzUtT0r8KFZ7zPcxWHXQ1EVNKxzA_rZ6ZKUcZO1c,744
|
|
307
|
+
orionis/test/contracts/test_result.py,sha256=SNXJ2UerkweYn7uCT0i0HmMGP0XBrL_9KJs-0ZvIYU4,4002
|
|
308
|
+
orionis/test/contracts/unit_test.py,sha256=PSnjEyM-QGQ3Pm0ZOqaa8QdPOtilGBVO4R87JYdVa-8,5386
|
|
308
309
|
orionis/test/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
309
|
-
orionis/test/core/unit_test.py,sha256=
|
|
310
|
+
orionis/test/core/unit_test.py,sha256=NiFk1u_a69JjQXBkXIzvlswoOniNm4YV4_dDGajRqQk,57400
|
|
310
311
|
orionis/test/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
311
|
-
orionis/test/entities/result.py,sha256=
|
|
312
|
+
orionis/test/entities/result.py,sha256=IMAd1AiwOf2z8krTDBFMpQe_1PG4YJ5Z0qpbr9xZwjg,4507
|
|
312
313
|
orionis/test/enums/__init__.py,sha256=M3imAgMvKFTKg55FbtVoY3zxj7QRY9AfaUWxiSZVvn4,66
|
|
313
|
-
orionis/test/enums/status.py,sha256=
|
|
314
|
+
orionis/test/enums/status.py,sha256=5SXvDQEFOT4Jkzdndw6hV8Tc2k4gm9XGjyZp0Qa55Zk,757
|
|
314
315
|
orionis/test/exceptions/__init__.py,sha256=HcFudBMqi86hzgxEyNhh29hNMOle4KZmKosJRqX5ayc,424
|
|
315
|
-
orionis/test/exceptions/config.py,sha256=
|
|
316
|
-
orionis/test/exceptions/failure.py,sha256=
|
|
317
|
-
orionis/test/exceptions/persistence.py,sha256=
|
|
318
|
-
orionis/test/exceptions/runtime.py,sha256=
|
|
319
|
-
orionis/test/exceptions/value.py,sha256=
|
|
316
|
+
orionis/test/exceptions/config.py,sha256=tzwTyfxuriALzH39VRtNcpO9iA64OuZTXPCJEbEG1C4,579
|
|
317
|
+
orionis/test/exceptions/failure.py,sha256=IlaH45y1D0kypu6uaNbi4iCzYrhZUxxO5hQ9DtGv0Gg,2020
|
|
318
|
+
orionis/test/exceptions/persistence.py,sha256=8Oakaey35DpByLoGnfbwHxFKntxgWaGl496hlyeosxU,619
|
|
319
|
+
orionis/test/exceptions/runtime.py,sha256=h9gQ0pS8tJTmuXNG-GHky8tTqpdz-cNqkntOOlRXZJg,612
|
|
320
|
+
orionis/test/exceptions/value.py,sha256=CoqYOkViU_RaKCMNpB82tgEsR3XhI1pw6YQ8sH8CJh4,588
|
|
320
321
|
orionis/test/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
321
|
-
orionis/test/output/dumper.py,sha256=
|
|
322
|
-
orionis/test/output/printer.py,sha256=
|
|
322
|
+
orionis/test/output/dumper.py,sha256=I2uHjy-sokj3cJyO_bOwBUMvIVNoU3um1jb4-vGe39k,5907
|
|
323
|
+
orionis/test/output/printer.py,sha256=lW29hkrpPQLW0Q0AF39vBXRsQrUgYDru-SA2QyQ9Qqs,20820
|
|
323
324
|
orionis/test/records/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
324
|
-
orionis/test/records/logs.py,sha256=
|
|
325
|
+
orionis/test/records/logs.py,sha256=7XIdzDmQpb2HLUoAUWVj8UKiQDOnCkLD7ttro-Lv5UY,14223
|
|
325
326
|
orionis/test/validators/__init__.py,sha256=RpuZFsrmxzLjRERyJ2fcZIQ27xuq2DedDlao2zmFE_U,991
|
|
326
|
-
orionis/test/validators/base_path.py,sha256=
|
|
327
|
-
orionis/test/validators/execution_mode.py,sha256=
|
|
328
|
-
orionis/test/validators/fail_fast.py,sha256=
|
|
329
|
-
orionis/test/validators/folder_path.py,sha256=
|
|
330
|
-
orionis/test/validators/module_name.py,sha256=
|
|
331
|
-
orionis/test/validators/name_pattern.py,sha256=
|
|
332
|
-
orionis/test/validators/pattern.py,sha256=
|
|
333
|
-
orionis/test/validators/persistent.py,sha256=
|
|
334
|
-
orionis/test/validators/persistent_driver.py,sha256=
|
|
335
|
-
orionis/test/validators/print_result.py,sha256=
|
|
336
|
-
orionis/test/validators/tags.py,sha256=
|
|
337
|
-
orionis/test/validators/throw_exception.py,sha256=
|
|
338
|
-
orionis/test/validators/verbosity.py,sha256=
|
|
339
|
-
orionis/test/validators/web_report.py,sha256
|
|
340
|
-
orionis/test/validators/workers.py,sha256=
|
|
327
|
+
orionis/test/validators/base_path.py,sha256=wAn5_HG0vQ5GH7wDKriO33Ijl1L1F3882BH67oraJnQ,1477
|
|
328
|
+
orionis/test/validators/execution_mode.py,sha256=YnrQlnIaoPtM0xjW7jJ2170m1aHwAPPIZBjSVe9g2QM,1693
|
|
329
|
+
orionis/test/validators/fail_fast.py,sha256=Z54GSQ2KxYeLy2gZwo51sYYMXH-6mj1w09okhI1MWOQ,850
|
|
330
|
+
orionis/test/validators/folder_path.py,sha256=Pfy65fANR6eY-8665exTOhzzzEUvblYSOFGEuJMiGxA,953
|
|
331
|
+
orionis/test/validators/module_name.py,sha256=A5Ng8LW2pPfgPKm0Vs_Y0oiP8Pe8Nfz8kV1zv_y7fbo,928
|
|
332
|
+
orionis/test/validators/name_pattern.py,sha256=I0DRZ7Nhtlzw33urmlr3EoGH6eJ8TdeFnpeRmqliThg,1139
|
|
333
|
+
orionis/test/validators/pattern.py,sha256=NYc_qsjd0Y1J0tmioW7nmlBVowbzkhGA17e4AdxfcA8,881
|
|
334
|
+
orionis/test/validators/persistent.py,sha256=8y6rkseAG4yobbw9AFvVjKlMl2HL_w5i6rH9LNNYZAU,851
|
|
335
|
+
orionis/test/validators/persistent_driver.py,sha256=9t832vIZyBAdIyKn-nZ-_nKs0Oxf2uvmR7K9ncWdRpw,1545
|
|
336
|
+
orionis/test/validators/print_result.py,sha256=heUVid49clGfk9-glzVX5NGz69bKqMr0yx2dJnG9rD4,902
|
|
337
|
+
orionis/test/validators/tags.py,sha256=Qv-p8XFyAjY7OI861s52eADGf3LqzOWYfKt4L1cpo4Q,1118
|
|
338
|
+
orionis/test/validators/throw_exception.py,sha256=PLtM94BArQf11VJhxfBHJSHARZSia-Q8ePixctU2JwQ,893
|
|
339
|
+
orionis/test/validators/verbosity.py,sha256=rADzM82cPcJ2_6crszpobJuwb5WihWNQf6i4M_yrCpw,1785
|
|
340
|
+
orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNusHqc02R8,853
|
|
341
|
+
orionis/test/validators/workers.py,sha256=HcZ3cnrk6u7cvM1xZpn_lsglHAq69_jx9RcTSvLrdb0,1204
|
|
341
342
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
342
|
-
orionis/test/view/render.py,sha256=
|
|
343
|
-
orionis-0.
|
|
343
|
+
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
344
|
+
orionis-0.435.0.dist-info/licenses/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
|
344
345
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
345
346
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
346
347
|
tests/container/test_container.py,sha256=asv8TkkupVoex6SWod74NBl4dSs7wb9mLmu_glNdNy8,14815
|
|
@@ -458,35 +459,35 @@ tests/services/system/test_services_system_imports.py,sha256=jbtIQkw_4DI6x2E-4Lg
|
|
|
458
459
|
tests/services/system/test_services_system_workers.py,sha256=wITbpJHKW_OXqTaFeteNRFuw5Q3_7d9lWNJnFE2r6to,5052
|
|
459
460
|
tests/support/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
460
461
|
tests/support/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
461
|
-
tests/support/entities/mock_dataclass.py,sha256
|
|
462
|
-
tests/support/entities/test_base.py,sha256=
|
|
462
|
+
tests/support/entities/mock_dataclass.py,sha256=-xPr-zsTO-rG_AgP9cJfiQmyhJecTA_S-6NHIeVo4yQ,1471
|
|
463
|
+
tests/support/entities/test_base.py,sha256=ClAKC6tlVKObM16-Um82hCtsZQbLyKgJMhXFbDW55Y0,2153
|
|
463
464
|
tests/support/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
464
465
|
tests/support/patterns/singleton/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
465
|
-
tests/support/patterns/singleton/test_patterns_singleton.py,sha256=
|
|
466
|
+
tests/support/patterns/singleton/test_patterns_singleton.py,sha256=92kpAJpwc77FgSVjvaYhBpftxoOV1Su8zuJKa2cuyfE,1429
|
|
466
467
|
tests/support/standard/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
467
|
-
tests/support/standard/test_services_std.py,sha256=
|
|
468
|
+
tests/support/standard/test_services_std.py,sha256=I9UeUkjrDdhvfSL3ao6wx2rLysXi6WZPbCOBmHC6ELI,6176
|
|
468
469
|
tests/support/wrapper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
469
|
-
tests/support/wrapper/test_services_wrapper_docdict.py,sha256=
|
|
470
|
+
tests/support/wrapper/test_services_wrapper_docdict.py,sha256=K-u5Z744Nj4dVie9tmLmnFxjN5vwHz_mDf6S0tZN97o,6822
|
|
470
471
|
tests/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
471
|
-
tests/testing/test_testing_unit.py,sha256=
|
|
472
|
+
tests/testing/test_testing_unit.py,sha256=6dKIg4s_sEk1uQh9dw7rF75QP-N0ChugBDOk4tAHLPk,6810
|
|
472
473
|
tests/testing/cases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
473
|
-
tests/testing/cases/test_testing_asynchronous.py,sha256=
|
|
474
|
-
tests/testing/cases/test_testing_synchronous.py,sha256=
|
|
474
|
+
tests/testing/cases/test_testing_asynchronous.py,sha256=3ji_jajS3bGdmMbAUQc9rBfcOTVnReklkgmAjYKL7SQ,1963
|
|
475
|
+
tests/testing/cases/test_testing_synchronous.py,sha256=Y-0teflDsL1B3nAVrGywMTY0u5a7tlAKXw9Oq1pF24M,1947
|
|
475
476
|
tests/testing/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
476
|
-
tests/testing/entities/test_testing_result.py,sha256=
|
|
477
|
+
tests/testing/entities/test_testing_result.py,sha256=U9ntvyXqCIDKkPutY8akLi_xzq-WzH7dU9DDqnCi-Lk,4731
|
|
477
478
|
tests/testing/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
478
|
-
tests/testing/enums/test_testing_status.py,sha256=
|
|
479
|
+
tests/testing/enums/test_testing_status.py,sha256=jxaxaBH6Zt9wsyNQU_IzIbBTf3KTeXaD1H-W9nMAMuU,2080
|
|
479
480
|
tests/testing/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
480
|
-
tests/testing/output/test_testing_dumper.py,sha256=
|
|
481
|
-
tests/testing/output/test_testing_printer.py,sha256=
|
|
481
|
+
tests/testing/output/test_testing_dumper.py,sha256=gk8jL-fAfBXi7rbt448KIf9gVOrfpSEN-ysExwwV7p8,943
|
|
482
|
+
tests/testing/output/test_testing_printer.py,sha256=zJI2NHsdNGagqcCO6kF7su4dSll0BZTu9jnIBy4t8H0,1348
|
|
482
483
|
tests/testing/records/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
483
|
-
tests/testing/records/test_testing_records.py,sha256=
|
|
484
|
+
tests/testing/records/test_testing_records.py,sha256=0XU3zu0mUla5FQ0Ij3H_8sVh_Yl_xduIkbHE3lUHbDI,5666
|
|
484
485
|
tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
485
|
-
tests/testing/validators/test_testing_validators.py,sha256=
|
|
486
|
+
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
486
487
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
487
|
-
tests/testing/view/test_render.py,sha256
|
|
488
|
-
orionis-0.
|
|
489
|
-
orionis-0.
|
|
490
|
-
orionis-0.
|
|
491
|
-
orionis-0.
|
|
492
|
-
orionis-0.
|
|
488
|
+
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
489
|
+
orionis-0.435.0.dist-info/METADATA,sha256=ZRvGT2JiamyywWKMCGIXaN8J2j445-wpiBz7cRrRYe4,4772
|
|
490
|
+
orionis-0.435.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
491
|
+
orionis-0.435.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
492
|
+
orionis-0.435.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
493
|
+
orionis-0.435.0.dist-info/RECORD,,
|
|
@@ -10,7 +10,18 @@ class Color(Enum):
|
|
|
10
10
|
@dataclass
|
|
11
11
|
class ExampleEntity(BaseEntity):
|
|
12
12
|
"""
|
|
13
|
-
|
|
13
|
+
Data structure representing an example entity with an identifier, name, color, and tags.
|
|
14
|
+
|
|
15
|
+
Parameters
|
|
16
|
+
----------
|
|
17
|
+
id : int, optional
|
|
18
|
+
Unique identifier for the entity. Default is 0.
|
|
19
|
+
name : str, optional
|
|
20
|
+
Name of the entity. Default is 'default'.
|
|
21
|
+
color : Color, optional
|
|
22
|
+
Color associated with the entity. Default is Color.RED.
|
|
23
|
+
tags : list, optional
|
|
24
|
+
List of tags associated with the entity. Default is an empty list.
|
|
14
25
|
|
|
15
26
|
Attributes
|
|
16
27
|
----------
|
|
@@ -22,13 +33,8 @@ class ExampleEntity(BaseEntity):
|
|
|
22
33
|
Color associated with the entity.
|
|
23
34
|
tags : list
|
|
24
35
|
List of tags associated with the entity.
|
|
25
|
-
|
|
26
|
-
Returns
|
|
27
|
-
-------
|
|
28
|
-
ExampleEntity
|
|
29
|
-
An instance of ExampleEntity with specified attributes.
|
|
30
36
|
"""
|
|
31
|
-
id: int = 0
|
|
32
|
-
name: str = "default"
|
|
33
|
-
color: Color = Color.RED
|
|
34
|
-
tags: list = field(default_factory=list, metadata={"default": ["tag1", "tag2"]})
|
|
37
|
+
id: int = 0 # Default id is 0
|
|
38
|
+
name: str = "default" # Default name is 'default'
|
|
39
|
+
color: Color = Color.RED # Default color is RED
|
|
40
|
+
tags: list = field(default_factory=list, metadata={"default": ["tag1", "tag2"]}) # Default tags list
|
|
@@ -5,32 +5,27 @@ class TestBaseEntity(AsyncTestCase):
|
|
|
5
5
|
|
|
6
6
|
async def asyncSetUp(self):
|
|
7
7
|
"""
|
|
8
|
-
|
|
8
|
+
Asynchronously initializes the test environment before each test.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
It creates an ExampleEntity with predefined attributes.
|
|
10
|
+
Initializes an ExampleEntity instance with predefined attributes and assigns it to self.entity.
|
|
12
11
|
|
|
13
12
|
Returns
|
|
14
13
|
-------
|
|
15
14
|
None
|
|
16
|
-
This method does not return any value.
|
|
17
15
|
"""
|
|
18
16
|
# Create an ExampleEntity instance for use in tests
|
|
19
17
|
self.entity = ExampleEntity(id=42, name="test", color=Color.GREEN, tags=["a", "b"])
|
|
20
18
|
|
|
21
19
|
async def testToDict(self):
|
|
22
20
|
"""
|
|
23
|
-
|
|
21
|
+
Tests the toDict method of ExampleEntity.
|
|
24
22
|
|
|
25
|
-
Verifies that
|
|
26
|
-
with correct field values.
|
|
23
|
+
Verifies that toDict returns a dictionary with correct field values for the entity.
|
|
27
24
|
|
|
28
25
|
Returns
|
|
29
26
|
-------
|
|
30
27
|
None
|
|
31
|
-
This method does not return any value.
|
|
32
28
|
"""
|
|
33
|
-
|
|
34
29
|
# Convert entity to dictionary
|
|
35
30
|
result = self.entity.toDict()
|
|
36
31
|
self.assertIsInstance(result, dict)
|
|
@@ -43,17 +38,14 @@ class TestBaseEntity(AsyncTestCase):
|
|
|
43
38
|
|
|
44
39
|
async def testGetFields(self):
|
|
45
40
|
"""
|
|
46
|
-
|
|
41
|
+
Tests the getFields method of ExampleEntity.
|
|
47
42
|
|
|
48
|
-
Ensures
|
|
49
|
-
each containing field name, types, default value, and metadata.
|
|
43
|
+
Ensures getFields returns a list of dictionaries, each containing field name, types, default value, and metadata.
|
|
50
44
|
|
|
51
45
|
Returns
|
|
52
46
|
-------
|
|
53
47
|
None
|
|
54
|
-
This method does not return any value.
|
|
55
48
|
"""
|
|
56
|
-
|
|
57
49
|
# Retrieve field information from entity
|
|
58
50
|
fields_info = self.entity.getFields()
|
|
59
51
|
self.assertIsInstance(fields_info, list)
|
|
@@ -5,22 +5,21 @@ class TestPatternsSingleton(AsyncTestCase):
|
|
|
5
5
|
|
|
6
6
|
async def testSingleton(self):
|
|
7
7
|
"""
|
|
8
|
-
|
|
8
|
+
Test the Singleton metaclass to ensure only one instance is created.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
regardless of how many times it is instantiated.
|
|
12
|
-
singleton instance
|
|
10
|
+
This test verifies that a class using the Singleton metaclass will always return
|
|
11
|
+
the same instance, regardless of how many times it is instantiated. It also checks
|
|
12
|
+
that the initial state of the singleton instance does not change after subsequent
|
|
13
|
+
instantiations with different arguments.
|
|
13
14
|
|
|
14
15
|
Parameters
|
|
15
16
|
----------
|
|
16
17
|
self : TestPatternsSingleton
|
|
17
|
-
|
|
18
|
+
Instance of the test case.
|
|
18
19
|
|
|
19
20
|
Returns
|
|
20
21
|
-------
|
|
21
22
|
None
|
|
22
|
-
This method does not return any value. Assertions are used to verify singleton behavior.
|
|
23
|
-
|
|
24
23
|
"""
|
|
25
24
|
# Define a class using the Singleton metaclass
|
|
26
25
|
class SingletonClass(metaclass=Singleton):
|
|
@@ -37,4 +36,4 @@ class TestPatternsSingleton(AsyncTestCase):
|
|
|
37
36
|
self.assertIs(instance1, instance2)
|
|
38
37
|
|
|
39
38
|
# Assert that the value remains as set by the first instantiation
|
|
40
|
-
self.assertEqual(instance1.value, 1)
|
|
39
|
+
self.assertEqual(instance1.value, 1)
|
|
@@ -6,13 +6,21 @@ class TestSupportStd(AsyncTestCase):
|
|
|
6
6
|
|
|
7
7
|
async def testInitializationAndAccess(self):
|
|
8
8
|
"""
|
|
9
|
-
Test
|
|
9
|
+
Test initialization and attribute access of StdClass.
|
|
10
|
+
|
|
11
|
+
Parameters
|
|
12
|
+
----------
|
|
13
|
+
self : TestSupportStd
|
|
14
|
+
The test case instance.
|
|
15
|
+
|
|
16
|
+
Returns
|
|
17
|
+
-------
|
|
18
|
+
None
|
|
10
19
|
|
|
11
20
|
Notes
|
|
12
21
|
-----
|
|
13
|
-
Verifies that
|
|
14
|
-
|
|
15
|
-
correctly after initialization.
|
|
22
|
+
Verifies that StdClass can be instantiated with specific attributes and
|
|
23
|
+
that those attributes are accessible after initialization.
|
|
16
24
|
"""
|
|
17
25
|
obj = StdClass(
|
|
18
26
|
first_name='Raul',
|
|
@@ -24,12 +32,20 @@ class TestSupportStd(AsyncTestCase):
|
|
|
24
32
|
|
|
25
33
|
async def testToDictReturnsCorrectData(self):
|
|
26
34
|
"""
|
|
27
|
-
Test that
|
|
35
|
+
Test that StdClass.toDict returns a dictionary with correct attribute data.
|
|
36
|
+
|
|
37
|
+
Parameters
|
|
38
|
+
----------
|
|
39
|
+
self : TestSupportStd
|
|
40
|
+
The test case instance.
|
|
41
|
+
|
|
42
|
+
Returns
|
|
43
|
+
-------
|
|
44
|
+
None
|
|
28
45
|
|
|
29
46
|
Notes
|
|
30
47
|
-----
|
|
31
|
-
|
|
32
|
-
that calling toDict() returns a dictionary containing those attributes and their values.
|
|
48
|
+
Ensures that toDict() returns a dictionary containing all attributes and their values.
|
|
33
49
|
"""
|
|
34
50
|
obj = StdClass(a=1, b=2)
|
|
35
51
|
expected = {'a': 1, 'b': 2}
|
|
@@ -37,12 +53,20 @@ class TestSupportStd(AsyncTestCase):
|
|
|
37
53
|
|
|
38
54
|
async def testUpdateAttributes(self):
|
|
39
55
|
"""
|
|
40
|
-
Test
|
|
56
|
+
Test updating multiple attributes using StdClass.update.
|
|
57
|
+
|
|
58
|
+
Parameters
|
|
59
|
+
----------
|
|
60
|
+
self : TestSupportStd
|
|
61
|
+
The test case instance.
|
|
62
|
+
|
|
63
|
+
Returns
|
|
64
|
+
-------
|
|
65
|
+
None
|
|
41
66
|
|
|
42
67
|
Notes
|
|
43
68
|
-----
|
|
44
|
-
|
|
45
|
-
and asserts that the attributes `foo` and `number` are set to the expected values.
|
|
69
|
+
Verifies that update() sets multiple attributes as expected.
|
|
46
70
|
"""
|
|
47
71
|
obj = StdClass()
|
|
48
72
|
obj.update(foo='bar', number=42)
|
|
@@ -51,12 +75,21 @@ class TestSupportStd(AsyncTestCase):
|
|
|
51
75
|
|
|
52
76
|
async def testUpdateReservedAttributeRaisesError(self):
|
|
53
77
|
"""
|
|
54
|
-
Test that updating a reserved attribute
|
|
55
|
-
|
|
78
|
+
Test that updating a reserved attribute raises OrionisStdValueException.
|
|
79
|
+
|
|
80
|
+
Parameters
|
|
81
|
+
----------
|
|
82
|
+
self : TestSupportStd
|
|
83
|
+
The test case instance.
|
|
84
|
+
|
|
85
|
+
Returns
|
|
86
|
+
-------
|
|
87
|
+
None
|
|
56
88
|
|
|
57
89
|
Notes
|
|
58
90
|
-----
|
|
59
|
-
Ensures that
|
|
91
|
+
Ensures that attempting to update a reserved attribute (e.g., '__init__')
|
|
92
|
+
raises the appropriate exception.
|
|
60
93
|
"""
|
|
61
94
|
obj = StdClass()
|
|
62
95
|
with self.assertRaises(OrionisStdValueException):
|
|
@@ -64,13 +97,21 @@ class TestSupportStd(AsyncTestCase):
|
|
|
64
97
|
|
|
65
98
|
async def testUpdateConflictingAttributeRaisesError(self):
|
|
66
99
|
"""
|
|
67
|
-
Test that updating
|
|
100
|
+
Test that updating with a conflicting attribute name raises OrionisStdValueException.
|
|
101
|
+
|
|
102
|
+
Parameters
|
|
103
|
+
----------
|
|
104
|
+
self : TestSupportStd
|
|
105
|
+
The test case instance.
|
|
106
|
+
|
|
107
|
+
Returns
|
|
108
|
+
-------
|
|
109
|
+
None
|
|
68
110
|
|
|
69
111
|
Notes
|
|
70
112
|
-----
|
|
71
|
-
Ensures that
|
|
72
|
-
|
|
73
|
-
an OrionisStdValueException, enforcing attribute safety.
|
|
113
|
+
Ensures that updating with a name that conflicts with an existing method
|
|
114
|
+
or reserved attribute (e.g., 'toDict') raises an exception.
|
|
74
115
|
"""
|
|
75
116
|
obj = StdClass()
|
|
76
117
|
with self.assertRaises(OrionisStdValueException):
|
|
@@ -78,11 +119,20 @@ class TestSupportStd(AsyncTestCase):
|
|
|
78
119
|
|
|
79
120
|
async def testRemoveExistingAttributes(self):
|
|
80
121
|
"""
|
|
81
|
-
Test
|
|
122
|
+
Test removal of an existing attribute using StdClass.remove.
|
|
123
|
+
|
|
124
|
+
Parameters
|
|
125
|
+
----------
|
|
126
|
+
self : TestSupportStd
|
|
127
|
+
The test case instance.
|
|
128
|
+
|
|
129
|
+
Returns
|
|
130
|
+
-------
|
|
131
|
+
None
|
|
82
132
|
|
|
83
133
|
Notes
|
|
84
134
|
-----
|
|
85
|
-
Removes attribute
|
|
135
|
+
Removes an attribute and checks that it no longer exists, while others remain.
|
|
86
136
|
"""
|
|
87
137
|
obj = StdClass(x=1, y=2)
|
|
88
138
|
obj.remove('x')
|
|
@@ -91,12 +141,20 @@ class TestSupportStd(AsyncTestCase):
|
|
|
91
141
|
|
|
92
142
|
async def testRemoveNonExistingAttributeRaisesError(self):
|
|
93
143
|
"""
|
|
94
|
-
Test that
|
|
144
|
+
Test that removing a non-existing attribute raises AttributeError.
|
|
145
|
+
|
|
146
|
+
Parameters
|
|
147
|
+
----------
|
|
148
|
+
self : TestSupportStd
|
|
149
|
+
The test case instance.
|
|
150
|
+
|
|
151
|
+
Returns
|
|
152
|
+
-------
|
|
153
|
+
None
|
|
95
154
|
|
|
96
155
|
Notes
|
|
97
156
|
-----
|
|
98
|
-
|
|
99
|
-
when called with the name of an attribute that does not exist on the object.
|
|
157
|
+
Ensures that attempting to remove an attribute that does not exist raises an error.
|
|
100
158
|
"""
|
|
101
159
|
obj = StdClass()
|
|
102
160
|
with self.assertRaises(AttributeError):
|
|
@@ -104,12 +162,20 @@ class TestSupportStd(AsyncTestCase):
|
|
|
104
162
|
|
|
105
163
|
async def testFromDictCreatesEquivalentInstance(self):
|
|
106
164
|
"""
|
|
107
|
-
Test
|
|
165
|
+
Test creation of StdClass instance from a dictionary using fromDict.
|
|
166
|
+
|
|
167
|
+
Parameters
|
|
168
|
+
----------
|
|
169
|
+
self : TestSupportStd
|
|
170
|
+
The test case instance.
|
|
171
|
+
|
|
172
|
+
Returns
|
|
173
|
+
-------
|
|
174
|
+
None
|
|
108
175
|
|
|
109
176
|
Notes
|
|
110
177
|
-----
|
|
111
|
-
Verifies that
|
|
112
|
-
the resulting object's toDict() method returns a dictionary equal to the original input.
|
|
178
|
+
Verifies that fromDict creates an instance whose attributes match the input dictionary.
|
|
113
179
|
"""
|
|
114
180
|
data = {'a': 10, 'b': 20}
|
|
115
181
|
obj = StdClass.fromDict(data)
|
|
@@ -117,12 +183,20 @@ class TestSupportStd(AsyncTestCase):
|
|
|
117
183
|
|
|
118
184
|
async def testReprAndStr(self):
|
|
119
185
|
"""
|
|
120
|
-
Test
|
|
186
|
+
Test __repr__ and __str__ methods of StdClass for expected output.
|
|
187
|
+
|
|
188
|
+
Parameters
|
|
189
|
+
----------
|
|
190
|
+
self : TestSupportStd
|
|
191
|
+
The test case instance.
|
|
192
|
+
|
|
193
|
+
Returns
|
|
194
|
+
-------
|
|
195
|
+
None
|
|
121
196
|
|
|
122
197
|
Notes
|
|
123
198
|
-----
|
|
124
|
-
|
|
125
|
-
- Checks that str(obj) contains the key-value pair "'x': 5".
|
|
199
|
+
Checks that __repr__ includes the class name and __str__ includes attribute key-value pairs.
|
|
126
200
|
"""
|
|
127
201
|
obj = StdClass(x=5)
|
|
128
202
|
self.assertIn("StdClass", repr(obj))
|
|
@@ -130,18 +204,20 @@ class TestSupportStd(AsyncTestCase):
|
|
|
130
204
|
|
|
131
205
|
async def testEquality(self):
|
|
132
206
|
"""
|
|
133
|
-
Test
|
|
207
|
+
Test equality and inequality operations for StdClass instances.
|
|
134
208
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
- 'c' with a different attribute (x=3), which should not be equal to 'a'.
|
|
209
|
+
Parameters
|
|
210
|
+
----------
|
|
211
|
+
self : TestSupportStd
|
|
212
|
+
The test case instance.
|
|
140
213
|
|
|
141
|
-
|
|
214
|
+
Returns
|
|
142
215
|
-------
|
|
143
|
-
|
|
144
|
-
|
|
216
|
+
None
|
|
217
|
+
|
|
218
|
+
Notes
|
|
219
|
+
-----
|
|
220
|
+
Verifies that instances with identical attributes are equal and those with different attributes are not.
|
|
145
221
|
"""
|
|
146
222
|
a = StdClass(x=1, y=2)
|
|
147
223
|
b = StdClass(x=1, y=2)
|