File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
- from simvue import client
2
+ from simvue import Run
3
3
import pytest
4
4
5
5
def test_suppress_errors ():
6
6
"""
7
7
Check that errors are surpressed
8
8
"""
9
- simv = client . Simvue ()
9
+ run = Run ()
10
10
11
11
with pytest .raises (RuntimeError , match = "suppress_errors must be boolean" ):
12
- simv .config (suppress_errors = 200 )
12
+ run .config (suppress_errors = 200 )
13
13
14
14
def test_missing_config ():
15
15
"""
16
16
Check for missing config
17
17
"""
18
- simv = client . Simvue ()
18
+ run = Run ()
19
19
20
20
with pytest .raises (RuntimeError , match = "Unable to get URL and token from environment variables or config file" ):
21
- simv .init ()
21
+ run .init ()
22
22
23
23
def test_invalid_url ():
24
24
"""
@@ -27,10 +27,10 @@ def test_invalid_url():
27
27
os .environ ["SIMVUE_URL" ] = "localhost"
28
28
os .environ ["SIMVUE_TOKEN" ] = "test"
29
29
30
- simv = client . Simvue ()
30
+ run = Run ()
31
31
32
32
with pytest .raises (RuntimeError , match = r".*Invalid URL.*" ):
33
- simv .init ()
33
+ run .init ()
34
34
35
35
def test_cannot_connect ():
36
36
"""
@@ -39,7 +39,7 @@ def test_cannot_connect():
39
39
os .environ ["SIMVUE_URL" ] = "http://localhost"
40
40
os .environ ["SIMVUE_TOKEN" ] = "test"
41
41
42
- simv = client . Simvue ()
42
+ run = Run ()
43
43
44
44
with pytest .raises (RuntimeError , match = "Failed to establish a new connection" ):
45
- simv .init ()
45
+ run .init ()
You can’t perform that action at this time.
0 commit comments