Skip to content

Commit 45138d6

Browse files
StartAutomatingStartAutomating
authored andcommitted
fix: Not re-importing in ExamplesShouldWork
1 parent 1da96dc commit 45138d6

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed
Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
11

22
describe 'Language.Python' {
33
it 'Language.Python Example 1' {
4-
.> {
5-
$pythonContent = @'
6-
"""{
7-
$msg = "Hello World", "Hey There", "Howdy" | Get-Random
8-
@"
9-
print("$msg")
10-
"@
11-
}"""
12-
'@
13-
[OutputFile('.\HelloWorld.ps1.py')]$PythonContent
14-
}
15-
16-
.> .\HelloWorld.ps1.py
4+
'print("Hello World")' > .\HelloWorld.py
5+
Invoke-PipeScript .\HelloWorld.py
176
}
187
it 'Language.Python Example 2' {
19-
'print("Hello World")' > .\HelloWorld.py
20-
Invoke-PipeScript .\HelloWorld.py | Should -Be 'Hello World'
8+
Template.HelloWorld.py -Message "Hi" | Set-Content ".\Hi.py"
9+
Invoke-PipeScript .\Hi.py
2110
}
2211
}
2312

0 commit comments

Comments
 (0)