File tree 2 files changed +13
-23
lines changed 2 files changed +13
-23
lines changed Original file line number Diff line number Diff line change 7
7
from ansys .dynamicreporting .core .serverless import ADR
8
8
9
9
10
- # Reset ADR singleton after the class is done
11
- @pytest .fixture (scope = "class" , autouse = False )
12
- def reset_adr_singleton_after_class ():
13
- yield
14
- ADR ._instance = None
15
- ADR ._is_setup = False
16
-
17
-
18
10
# Initialize ADR without setup
19
11
@pytest .fixture (scope = "session" , autouse = False )
20
12
def adr_init (pytestconfig : pytest .Config ) -> ADR :
Original file line number Diff line number Diff line change 15
15
from ansys .dynamicreporting .core .serverless import ADR
16
16
17
17
18
- @pytest .mark .usefixtures ("reset_adr_singleton_after_class" )
19
- @pytest .mark .ado_test
20
- class TestADRInitPaths :
21
- def test_init_simple (self , adr_init ):
22
- # existing db directory
23
- base_dir = Path (__file__ ).parent / "test_data"
24
- local_db = base_dir / "documentation_examples"
25
- adr = ADR (
26
- ansys_installation = adr_init .ansys_installation ,
27
- db_directory = local_db ,
28
- )
29
- assert adr .db_directory == str (local_db )
30
- assert adr .ansys_installation == str (adr_init .ansys_installation )
31
- ADR ._instance = None
32
- ADR ._is_setup = False
18
+ @pytest .mark .ado_test
19
+ def test_init_simple (self , adr_init ):
20
+ # existing db directory
21
+ base_dir = Path (__file__ ).parent / "test_data"
22
+ local_db = base_dir / "documentation_examples"
23
+ adr = ADR (
24
+ ansys_installation = adr_init .ansys_installation ,
25
+ db_directory = local_db ,
26
+ )
27
+ assert adr .db_directory == str (local_db )
28
+ assert adr .ansys_installation == str (adr_init .ansys_installation )
29
+ ADR ._instance = None
30
+ ADR ._is_setup = False
33
31
34
32
35
33
@pytest .mark .ado_test
You can’t perform that action at this time.
0 commit comments