This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use async coroutine for dyn attr test
The tests would pass in `GreenMode.Asyncio` if the read, write and is_allowed methods are not coroutines. This does not verify the problem reported: specifically, that dynamic attributes with async coroutines do not work properly. With these changes, the tests now fail as expected for `GreenMode.Asyncio`. The creation of the dynamic attributes was changed to use the more convenient `attribute` class instead of `Attr`. This also allows all data types to be more easily tested. The `initialize_dynamic_attributes` method is a built-in PyTango feature, called during device class instantiation, by the `DeviceClass` device factory. It is called after `__init__` and `init_device`, but before the device is exported. Also moved the test closer to the other dynamic attribute tests.
- Loading branch information
1 parent
adb758a
commit 5841fd4
Showing
1 changed file
with
69 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters