Closed RomanCh-OT closed 2 weeks ago
None of these coroutine tests appear to actually run. You can test it by adding
self.assertEqual(1, 2)
into any of them, and running the suite, and they will still pass.
You defenately right! We have to use unittest.IsolatedAsyncioTestCase
instead of unittest.TestCase
for making correct async tests based on unittest lib.
Additional context:
tests/integration_tests/test_subtensor_integration.py
with async unittest.tests/integration_tests/test_cli.py
because those tests based on sync cli.py
module. Will be fixed later.TODO: fix after commands and cli are async migrated
Async tests fix for
tests/integration_tests
directory