|
49 | 49 | # Tests as closely as possible to make keeping them in sync easier.
|
50 | 50 |
|
51 | 51 | # These map distinct reasons for failures, so we an easily find them.
|
52 |
| -xfail_async = pytest.mark.xfail(reason="Implement async methods", strict=True) |
53 |
| -xfail_callbacks = pytest.mark.xfail(reason="Implement callback support", strict=True) |
| 52 | +xfail_callbacks = pytest.mark.skip(reason="Implement callback support") |
54 | 53 |
|
55 | 54 |
|
56 | 55 | class DerivedFromAllTypes(AllTypes):
|
@@ -464,39 +463,33 @@ def test_creationOfNativeObjectsFromJavaScriptObjects():
|
464 | 463 | assert unmarshalled_native_obj.__class__ == MulTen
|
465 | 464 |
|
466 | 465 |
|
467 |
| -@xfail_async |
468 | 466 | def test_asyncOverrides_callAsyncMethod():
|
469 | 467 | obj = AsyncVirtualMethods()
|
470 | 468 | assert obj.call_me() == 128
|
471 | 469 | assert obj.override_me(44) == 528
|
472 | 470 |
|
473 | 471 |
|
474 |
| -@xfail_async |
475 | 472 | def test_asyncOverrides_overrideAsyncMethod():
|
476 | 473 | obj = OverrideAsyncMethods()
|
477 | 474 | obj.call_me() == 4452
|
478 | 475 |
|
479 | 476 |
|
480 |
| -@xfail_async |
481 | 477 | def test_asyncOverrides_overrideAsyncMethodByParentClass():
|
482 | 478 | obj = OverrideAsyncMethodsByBaseClass()
|
483 | 479 | obj.call_me() == 4452
|
484 | 480 |
|
485 | 481 |
|
486 |
| -@xfail_async |
487 | 482 | def test_asyncOverrides_overrideCallsSuper():
|
488 | 483 | obj = OverrideCallsSuper()
|
489 | 484 | assert obj.override_me(12) == 1441
|
490 | 485 | assert obj.call_me() == 1209
|
491 | 486 |
|
492 | 487 |
|
493 |
| -@xfail_async |
494 | 488 | def test_asyncOverrides_twoOverrides():
|
495 | 489 | obj = TwoOverrides()
|
496 | 490 | assert obj.call_me() == 684
|
497 | 491 |
|
498 | 492 |
|
499 |
| -@xfail_async |
500 | 493 | def test_asyncOverrides_overrideThrows():
|
501 | 494 | class ThrowingAsyncVirtualMethods(AsyncVirtualMethods):
|
502 | 495 | def override_me(self, mult):
|
@@ -783,15 +776,14 @@ def test_reservedKeywordsAreSlugifiedInMethodNames():
|
783 | 776 | obj.return_()
|
784 | 777 |
|
785 | 778 |
|
786 |
| -@xfail_async |
787 | 779 | def test_nodeStandardLibrary():
|
788 | 780 | obj = NodeStandardLibrary()
|
789 | 781 |
|
790 | 782 | assert obj.fs_read_file() == "Hello, resource!"
|
791 | 783 | assert obj.fs_read_file_sync() == "Hello, resource! SYNC!"
|
792 |
| - assert len(obj.get_os_platform()) > 0 |
| 784 | + assert len(obj.os_platform) > 0 |
793 | 785 | assert (
|
794 |
| - obj.crypto_sha_256() |
| 786 | + obj.crypto_sha256() |
795 | 787 | == "6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50"
|
796 | 788 | )
|
797 | 789 |
|
|
0 commit comments