Skip to content

Commit 16a677b

Browse files
Add microgrid as default import to conftest.py (#404)
2 parents 4871137 + 3123a38 commit 16a677b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def evaluate(self, example: Example) -> None | str:
122122
import_header.append(
123123
path_to_import_statement(Path(os.path.relpath(example.path)))
124124
)
125+
# Add microgrid as default import
126+
import_header.append("from frequenz.sdk import microgrid")
125127
imports_code = "\n".join(import_header)
126128

127129
# Dedent the code example

0 commit comments

Comments
 (0)