-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new test to test importing automation works. It needs to be it's own …
…test since the other test files mess with imports and state and caches
- Loading branch information
1 parent
9da5154
commit 86092eb
Showing
3 changed files
with
18 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
# test_automation_imports | ||
from __future__ import annotations | ||
|
||
from pioreactor.background_jobs.temperature_control import start_temperature_control | ||
|
||
|
||
def test_start_temperature_control(): | ||
import importlib | ||
|
||
importlib.invalidate_caches() | ||
with start_temperature_control( | ||
"thermostat", "test", "test_start_temperature_control", target_temperature=30 | ||
): | ||
pass |
1 change: 0 additions & 1 deletion
1
pioreactor/tests/test_automation.py → pioreactor/tests/test_automation_struct.py
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